Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89137

Meta-Object Compiler fails extending BOOST_PP_SEQ_ENUM macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.15.2
    • Build tools: moc
    • None
    • Windows

    Description

      At least with Qt 5.15.2, moc seems to fail parsing Boost's BOOST_PP_SEQ_ENUM macro in errors like:

      AutoMoc subprocess error
      ------------------------
      The moc process failed to compile
      "SRC:.../simulation_data_model.h"
      into
      "SRC:.../moc_simulation_data_model.cpp"

      Command
      -------
      moc.exe -DBOOST_ALL_NO_LIB -DBOOST_LOCALE_HIDE_AUTO_PTR...

      Output
      ------
      :/.../result_data.(15): Parse error at "BOOST_PP_SEQ_ENUM_0"

      This happens on Windows 10, compiling with CMake + MSVC 2019, but works ok on Linux, compiling with CMake + GCC 10. Also, that exact same code use to compile just fine with Qt 5.13.1, which may indicate a regression.
       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fabiankosmale Fabian Kosmale
            mablanchard Martin Blanchard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes