Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2, 6.2.2, 6.3.0 Alpha
-
None
-
C++20 / Clang / MSVC
-
-
806ba27419 (qt/qtbase/dev) 806ba27419 (qt/tqtc-qtbase/dev) 692c075c8c (qt/qtbase/6.2) 8576b7aab4 (qt/tqtc-qtbase/5.15) 37d4e9c8ad (qt/qtbase/6.3) 692c075c8c (qt/tqtc-qtbase/6.2) 37d4e9c8ad (qt/tqtc-qtbase/6.3)
Description
Compiling pretty much any Qt widgets application fails with Qt in namespace in C++20 mode, because it can't find anything in the std namespace. The reason is that qopengl.h has a #include <stddef.h> inside QT_BEGIN_NAMESPACE, and apparently stddef now declares something in the std namespace. The include should be wrapped in QT_BEGIN_INCLUDE_NAMESPACE.
Attachments
For Gerrit Dashboard: QTBUG-95309 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
361183,8 | qopengl.h: Move C header #include(s) out of the QT_NAMESPACE | dev | qt/qtbase | Status: MERGED | +2 | 0 |
391537,2 | qopengl.h: Move C header #include(s) out of the QT_NAMESPACE | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
391538,2 | qopengl.h: Move C header #include(s) out of the QT_NAMESPACE | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
391539,2 | qopengl.h: Move C header #include(s) out of the QT_NAMESPACE | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |