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

Building Qt from source fails to compile with C++20 standard enabled when using MSVC 2022

    XMLWordPrintable

Details

    • Windows
    • 0842b01f02 (qt/qtbase/dev) 80292b9b2c (qt/qtbase/6.2) 60afb344ce (qt/qtbase/6.3) 80292b9b2c (qt/tqtc-qtbase/6.2) 60afb344ce (qt/tqtc-qtbase/6.3) 0842b01f02 (qt/tqtc-qtbase/dev)

    Description

      Compiling Qt with MSVC 2022 and Win 11 SDK in c++20 mode fails in qtdeclarative with error:

       qproperty.h(85): error C2182: 'val': illegal use of type 'void'
       qproperty.h(92): error C2182: 'abstract declarator': illegal use of type 'void'
      

      Configuration used:

       ..\qt-everywhere-src-6.2.2\configure -debug -c++std c++20
       cmake --build .
      

      Attachments

        1. BuildErrorLog.txt
          5 kB
          Tuukka Kettunen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            foxxx Tuukka Kettunen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes