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

[for Qt 7] Signal parameter MOC handling error with gcc 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.0.4, 6.2.0 Beta4
    • Fix Version/s: 7.0 (Next Major Release)
    • Component/s: Core: Other
    • Labels:
    • Environment:
      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
    • Platform/s:
      All
    • Story Points:
      8
    • Sprint:
      Team 1 Foundation_Sprint 42

      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. error.log
          23 kB
          Sandro S. Andrade
        2. qt6-bug-example.tar.gz
          0.7 kB
          Sandro S. Andrade
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            ievgenii.meshcheriakov Ievgenii Meshcheriakov
            Reporter:
            sandroandrade Sandro S. Andrade
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes