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

moc parse error when tbb.h included

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.15.2
    • Build tools: moc
    • None
    • macOS

    Description

      This was raised as https://bugreports.qt.io/browse/QTBUG-80990 and closed as duplicate of issue supposedly solved. It was not solved and still exists as of Qt 5.15.2. This happnes for TBB library versions 2020 and higher (up to current 2021).

      It happens when Intel Thread Building Blocks (TBB) library is used within ang QT C++ source file processed by moc. So reproduction steps - add

      #include <tbb/tbb.h>
      into any C++ QT source file (i.e. the one processed by moc).

      The reason for this is because TBB defines tbb::detail::dl:event structure with methods named emit() and this is what causing the issue.

      Attachments

        1. test.cpp
          0.2 kB
          Fabian Kosmale
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fabiankosmale Fabian Kosmale
            alexey.danilchenko Alexey Danilchenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes