Details
-
Bug
-
Status: Open
-
P2: Important
-
Resolution: Unresolved
-
6.1
-
None
-
None
-
bb2b073ed (dev), 06ef8ce56 (6.5), 790e3b2a1 (6.4)
Description
For some reason Qt 6 does not autodetect the latest C++ support by the compiler, instead it requires an opt-in switch to cmake / configure.
This switch is not currently being passed on the CI. The result is that Qt actually FTBFS if C++ 20 gets enabled (some C++ 20 specific codepath was never tested and had errors).
Proposed solution:
- install recent enough compilers on the CI (GCC >= 10, MSVC 2019-latest, clang >= 12, etc.)
- Build as C++20:
- either restore the autodetection, and install recent enough compilers on the CI, so we can catch such mistakes, or
- manually pass the relevant switch to configure/cmake so to enable C++20 on the toolchains that do support it.
Attachments
Issue Links
- relates to
-
QTBUG-94059 Stop using mixed enum arithmetic
-
- Closed
-
-
QTBUG-89729 Error compiling Qt with MSVC and c++2a
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTQAINFRA-4117 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
405793,6 | Enable C++20 standard for Windows developer builds | dev | qt/qt5 | Status: NEW | +2 | 0 |
407735,1 | QProperty: Do not attempt to use source_location in C++20 mode on MSVC | dev | qt/qtbase | Status: NEW | +1 | 0 |