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

QT5 build failed due to error C2059 under "/std:c++latest"(C++20)" on MSVC

    XMLWordPrintable

Details

    • Windows
    • a96a64be2dc3110d140e43d2cf85454d9fc998b8 (qt/qtbase/5.12)

    Description

      QT5 build failed due to error C2059 under "/std:c+latest"(C20)" in the development version of Visual C+. Could you help look at this? Thanks in advance! We use latest source code form QT5. Noted that this issue only found when compiles with unreleased vctoolset, that next release of MSVC will have this behavior.

      Repro steps:
      1. open a clean x86 prompt
      2. git clone git://code.qt.io/qt/qt5.git D:\QT5\src
      3. cd /d D:\QT5\src
      4. git checkout dev
      5. perl init-repository
      6. set CL=/std:c++latest
      7. configure -developer-build -opensource -release -nomake examples -nomake tests -skip qtwebengine -confirm-license

      Acutal result:
      D:\QT5\src\qtbase\qmake\generators\makefile.cpp(3424): error C2059: syntax error: 'requires'
      D:\QT5\src\qtbase\qmake\generators\makefile.cpp(3425): error C2059: syntax error: 'requires'
      D:\QT5\src\qtbase\qmake\generators\makefile.cpp(3425): error C2143: syntax error: missing ';' before '{'
      D:\QT5\src\qtbase\qmake\generators\makefile.cpp(3426): error C2059: syntax error: 'requires'

      Attachments

        For Gerrit Dashboard: QTBUG-77093
        # Subject Branch Project Status CR V

        Activity

          People

            yulong.bai Bai Yulong
            quellazhang Quella Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes