Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.1
-
None
-
gcc 11
-
675a4b0cc77a81d92cea6e044200349676f3b117 (qt/qtbase/dev) 9433614df262be8aadfc764c855d4dd8fc0fb612 (qt/qtbase/6.1)
Description
gcc 11 has header <source_location>, but Qt sources isnt ready for that
qtbase/src/corelib/kernel/qproperty.h
... #if __has_include(<source_location>) && __cplusplus >= 202002L && !defined(Q_CLANG_QDOC) #include <experimental/source_location> //<---------- wrong header included #define QT_PROPERTY_COLLECT_BINDING_LOCATION #define QT_PROPERTY_DEFAULT_BINDING_LOCATION QPropertyBindingSourceLocation(std::source_location::current()) ... #ifdef QT_PROPERTY_COLLECT_BINDING_LOCATION QPropertyBindingSourceLocation(const std::experimental::source_location &cppLocation) //<-------------- wrong class used { fileName = cppLocation.file_name(); functionName = cppLocation.function_name(); line = cppLocation.line(); column = cppLocation.column(); } #endif
So, Qt itself and user code that includes qproperty.h - wont compile
Attachments
Issue Links
- is duplicated by
-
QTBUG-93966 compile bug in qproperty.h
-
- Closed
-
-
QTBUG-94006 Qt 6 dev, C++20, clang, libstdc++-11 : does not build
-
- Closed
-