Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1632

Moc can't parse boost/mpl/bitand.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 1.18.0, 1.18.1
    • API: C++
    • None
    • Windows

    Description

      The problem is similar to QBS-1621, but now MSVC affected.

      #pragma once
      
      #include <QtCore/QObject>
      
      #include <boost/mpl/bitand.hpp>
      
      class Test : public QObject
      {
          Q_OBJECT
      };
      

      Compile output:

      moc test.h [test]
      C:\.conan\b90598\1\bin\moc.exe -D_CPPRTTI "-D_MSC_BUILD=0" -D_MSC_EXTENSIONS "-D_MSC_FULL_VER=192829336" "-D_MSC_VER=1928" -D_MT "-D_M_AMD64=100" "-D_M_X64=100" -D_WIN32 -D_WIN64 -DUNICODE -D_UNICODE -DWIN32 -DBOOST_USE_STATIC_LIBS -DBOOST_ALL_NO_LIB -DQT_CORE_LIB -IC:/.conan/b7c21d/1/include -IC:/.conan/b90598/1/include -IC:/.conan/b90598/1/include/QtCore -IC:/.conan/b90598/1/mkspecs/win32-msvc -IC:/Development/trash/build-test-MSVC_Conan_5_15_0-Debug/Debug_MSVC_Con_fae9567b4444f9d6/test.a94a8fe5/qt.headers "-IC:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/INCLUDE" -o C:/Development/trash/build-test-MSVC_Conan_5_15_0-Debug/Debug_MSVC_Con_fae9567b4444f9d6/test.a94a8fe5/qt.headers/moc_test.cpp C:/Development/trash/test/test.h
      C:/.conan/b7c21d/1/include/boost/mpl/bitand.hpp(24): Parse error at "("
      

      It's a regression from 1.17.1

      Attachments

        1. test.h
          0.1 kB
          Max Bespalov
        2. test.qbs
          2 kB
          Max Bespalov
        3. test-moc.7z
          0.9 kB
          Ivan Komissarov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            mabean Max Bespalov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes