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

Signal parameter MOC handling error with gcc 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.3.0 Beta3, 6.4.0 Beta1
    • 6.0.4, 6.2.0 Beta4
    • Core: Other
    • None
    • ArchLinux x86_64 with kernel 5.12.1
      Qt 6.0.4
      nlohmann::json 3.9.1
      CMake 3.20.2
      gcc 9.3.0 and 10.2.0
    • All
    • 8
    • 67385c04ce (qt/qtbase/dev) 67385c04ce (qt/tqtc-qtbase/dev) aae6eb8f6d (qt/qtbase/6.3) aae6eb8f6d (qt/tqtc-qtbase/6.3) aae6eb8f6d (qt/tqtc-qtbase/6.3.0)
    • Team 1 Foundation_Sprint 42, Team B Foundation Sprint 53

    Description

      Hi,

      It seems a specific combination of Qt 6.0.4 + gcc 10 causes a compilation error when using nlohmann::json as a signal parameter. Please find attached a minimal example and the error log.

      This works fine with Qt 5.15.2 + gcc (9 or 10) and also with Qt 6.0.4 + gcc 9. I'm unsure, however, if it's a bug in Qt 6 itself or in nlohmann::json not meeting specific requirements for being used as a signal parameter.

      Thanks in advance for any feedback!

      Attachments

        1. qt6-bug-example.tar.gz
          0.7 kB
        2. error.log
          23 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mmutz Marc Mutz
            sandroandrade Sandro S. Andrade
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes