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

tst_qcompare fails to compile on MSVC 2022 c++20

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.9
    • Core: Other
    • None
    • e5d96ae7d (6.8), 1017a0eaf (dev)

    Description

      While trying to integrate https://codereview.qt-project.org/c/qt/qt5/+/567093 there was a build fail on:

      agent:2024/08/30 06:49:58 build.go:404: FAILED: tests/auto/corelib/global/qcompare/CMakeFiles/tst_qcompare.dir/tst_qcompare.cpp.obj 
      agent:2024/08/30 06:49:58 build.go:404: sccache C:\PROGRA~1\MICROS~3\2022\PROFES~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo /TP -DNOMINMAX -DQT_CORE_LIB -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_STRICT_QLIST_ITERATORS -DQT_TESTCASE_BUILDDIR=\"C:/Users/qt/work/qt/qtbase_standalone_tests/tests/auto/corelib/global/qcompare\" -DQT_TESTCASE_SOURCEDIR=\"C:/Users/qt/work/qt/qtbase/tests/auto/corelib/global/qcompare\" -DQT_TESTLIB_LIB -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:\Users\qt\work\qt\qtbase_standalone_tests\tests\auto\corelib\global\qcompare\tst_qcompare_autogen\include -IC:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare -IC:\Users\qt\work\qt\qtbase_standalone_tests\tests\auto\corelib\global\qcompare -IC:\Users\qt\work\qt\qtbase_standalone_tests\include -external:IC:\Users\qt\work\install\include\QtCore -external:IC:\Users\qt\work\install\include -external:IC:\Users\qt\work\install\mkspecs\win32-msvc -external:IC:\Users\qt\work\install\include\QtTest -external:W0 /DWIN32 /D_WINDOWS /GR /Z7     /DNDEBUG -O2 -Ob3 -std:c++20 -MD /W3 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw /EHsc /d2FH4 /showIncludes /Fotests\auto\corelib\global\qcompare\CMakeFiles\tst_qcompare.dir\tst_qcompare.cpp.obj /Fdtests\auto\corelib\global\qcompare\CMakeFiles\tst_qcompare.dir\ /FS -c C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(699): error C2440: 'initializing': cannot convert from 'const Qt::strong_ordering' to 'std::partial_ordering'
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(699): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(699): error C2131: expression did not evaluate to a constant
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(699): note: a non-constant (sub-)expression was encountered
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(700): error C2131: expression did not evaluate to a constant
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(700): note: failure was caused by a read of an uninitialized symbol
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(700): note: see usage of 'stdP1'
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(703): error C2440: 'initializing': cannot convert from 'const Qt::strong_ordering' to 'std::weak_ordering'
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(703): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(703): error C2131: expression did not evaluate to a constant
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(703): note: a non-constant (sub-)expression was encountered
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(704): error C2131: expression did not evaluate to a constant
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(704): note: failure was caused by a read of an uninitialized symbol
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(704): note: see usage of 'stdW'
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(708): error C2440: 'initializing': cannot convert from 'const Qt::weak_ordering' to 'std::partial_ordering'
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(708): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(708): error C2131: expression did not evaluate to a constant
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(708): note: a non-constant (sub-)expression was encountered
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(709): error C2131: expression did not evaluate to a constant
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(709): note: failure was caused by a read of an uninitialized symbol
      agent:2024/08/30 06:49:58 build.go:404: C:\Users\qt\work\qt\qtbase\tests\auto\corelib\global\qcompare\tst_qcompare.cpp(709): note: see usage of 'stdP2'
      

      Attachments

        Issue Links

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

          Activity

            People

              tatiana.borisova Tatiana Borisova
              jujokini Jukka Jokiniva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes