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

Probably a GCC 14 warning with Qt 6.7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.7.1
    • Core: Threads
    • None
    • Qt 6.7.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by
      GCC 14.1.1 20240522) on "xcb"
      OS: Manjaro Linux [linux version 6.6.34-1-MANJARO]
    • Linux/X11

    Description

      I got a report from a user of our software that he meets this warning when compiling our application:

      In file included from /usr/include/qt/QtCore/qfuture.h:45,
                        from /usr/include/qt/QtCore/QtCore:97,
                        from /usr/include/qt/QtWidgets/QtWidgetsDepends:3,
                        from /usr/include/qt/QtWidgets/QtWidgets:3,
                        from interface/fetmainform.h:29,
                        from interface/fet.cpp:68:
      /usr/include/qt/QtCore/qfutureinterface.h:284:37: warning: template-id 
      not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
         284 |     explicit QFutureInterface<void>(State initialState = NoState)
             |                                     ^~~~~
      /usr/include/qt/QtCore/qfutureinterface.h:284:37: note: remove the '< >'

       

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              liviulalescu Liviu Lalescu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes