Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7
-
None
-
-
9746a55be (dev), c8a236e85 (dev), 49e82ad18 (6.7), 419dac87e (6.7), 563372e7c (6.7.1), 3a7387379 (6.7.1)
Description
With MSVC2022 compiler version 19.39.33523 libclang15-based lupdate will fail with the following error
qt@DESKTOP-T3V08O7 C:\Users\qt\work\qt\qttools\tests\auto\linguist\lupdate\testdata\good\heuristics>C:\Users\qt\work\install\bin\lupdate.exe -clang-parser -verbose -disable-heuristic similartext -no-obsolete project.pro Info: creating stash file C:\Users\qt\work\qt\qttools\tests\auto\linguist\lupdate\testdata\good\heuristics\.qmake.stash In file included from C:\Users\qt\work\qt\qttools\tests\auto\linguist\lupdate\testdata\good\heuristics\main.cpp:33: In file included from C:/Users/qt/work/install/include/QtCore\QtCore:4: In file included from C:/Users/qt/work/install/include/QtCore/qglobal.h:13: In file included from C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\type_traits:8: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\yvals_core.h:892:1: error: static assertion failed: error STL1000: Unexpected compiler version, expected Clang 16.0.0 or newer. _EMIT_STL_ERROR(STL1000, "Unexpected compiler version, expected Clang 16.0.0 or newer."); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\yvals_core.h:516:44: note: expanded from macro '_EMIT_STL_ERROR' #define _EMIT_STL_ERROR(NUMBER, MESSAGE) static_assert(false, "error " #NUMBER ": " MESSAGE) ^ ~~~~~ 1 error generated. Error while processing C:\Users\qt\work\qt\qttools\tests\auto\linguist\lupdate\testdata\good\heuristics\main.cpp. Updating 'project.ts'... Found 2 source text(s) (0 new and 2 already existing)
The headers of this MSVC version require libclang16 now.
This has been uncovered by an attempt to update MSVC2022 in CI: https://codereview.qt-project.org/c/qt/qt5/+/549791
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-123611 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
550484,2 | CMake: Require libclang 16 for lupdate on MSVC version 1939 | dev | qt/qttools | Status: MERGED | +2 | 0 |
550486,2 | CI: Turn off FEATURE_clangcpp for MSVC2022 | dev | qt/qt5 | Status: MERGED | +2 | 0 |
556837,3 | CI: Turn off FEATURE_clangcpp for MSVC2022 | 6.7 | qt/qt5 | Status: MERGED | +2 | 0 |
557103,2 | CMake: Require libclang 16 for lupdate on MSVC version 1939 | 6.7 | qt/qttools | Status: MERGED | +2 | +1 |
558101,2 | CI: Turn off FEATURE_clangcpp for MSVC2022 | 6.7.1 | qt/qt5 | Status: MERGED | +2 | 0 |
558103,2 | CMake: Require libclang 16 for lupdate on MSVC version 1939 | 6.7.1 | qt/qttools | Status: MERGED | +2 | 0 |