Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
6.1
-
None
Description
C++20 deprecated (and C++23 will likely remove) arithmetic between mixed enumerations, as well as enumeration/floating point operations.
We're using it all over the place, causing countless warnings in GCC11 in C++20 mode. We need to port away from it.
Attachments
Issue Links
- is duplicated by
-
QTBUG-96658 compiler error in qdatetime.cpp
-
- Closed
-
- is replaced by
-
QTBUG-99948 Fix enum/enum arithmetic in Qt
-
- Closed
-
- relates to
-
QTBUG-93360 Compile Qt with gcc 11
-
- Closed
-
-
QTQAINFRA-4117 Build Qt with C++2a
-
- Closed
-
For Gerrit Dashboard: QTBUG-94059 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
351385,1 | WIP: QLayoutPolicy: stop using mixed enum arithmetic | dev | qt/qtbase | Status: NEW | -2 | 0 |
351382,3 | Add GCC 11 and C++20 workarounds | dev | qt/qtbase | Status: MERGED | +2 | 0 |
351383,2 | QThread: avoid mixed enum arithmetic | dev | qt/qtbase | Status: MERGED | +2 | 0 |
351384,2 | Stop using mixed enum arithmetic | dev | qt/qtbase | Status: MERGED | +2 | 0 |
355528,2 | Add GCC 11 and C++20 workarounds | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
355529,2 | Add GCC 11 and C++20 workarounds | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |
371718,2 | Stop using mixed enum arithmetic | 6.2.0 | qt/qtbase | Status: ABANDONED | 0 | 0 |
371719,2 | Stop using mixed enum arithmetic | 6.2 | qt/qtbase | Status: ABANDONED | 0 | 0 |