Bug #2062
openQt: sprite.cpp: QChar previously incomplete in SFINAE context
0%
Description
On Manjaro, with gcc-16 and Qt-6.11, S3_2 Qt-client compile fails on sprite.cpp:
In file included from /usr/include/qt6/QtCore/qstring.h:15,
from /usr/include/qt6/QtCore/qcoreapplication.h:9,
from /usr/include/qt6/QtGui/qimagereader.h:9,
from /usr/include/qt6/QtGui/QImageReader:1,
from ../../../../src/client/gui-qt/sprite.cpp:19:
/usr/include/qt6/QtCore/qchar.h:48:31: error: defining 'QChar', which previously failed to be complete in a SFINAE context [-Werror=sfinae-incomplete=]
48 | class QT6_ONLY(Q_CORE_EXPORT) QChar {
| ^~~
In file included from /usr/include/c++/16.1.1/unordered_map:44,
from /usr/include/c++/16.1.1/functional:80,
from /usr/include/qt6/QtCore/qcomparehelpers.h:29,
from /usr/include/qt6/QtCore/qcompare.h:661,
from /usr/include/qt6/QtCore/qnamespace.h:14,
from /usr/include/qt6/QtCore/qbytearray.h:10,
from /usr/include/qt6/QtGui/qimagereader.h:8:
/usr/include/c++/16.1.1/bits/range_access.h:325:24: note: here. Use '-Wsfinae-incomplete=2' for a diagnostic at that point
325 | -> decltype(__cont.data())
| ~~~~~^~~~
Files
Updated by Marko Lindqvist about 23 hours ago
- Blocks Tasks #2047: Release 3.2.5 added
Updated by Marko Lindqvist about 5 hours ago
- File 0040-Qt-Fix-sfinae-incomplete-compiler-warning-with-Qt-6..patch 0040-Qt-Fix-sfinae-incomplete-compiler-warning-with-Qt-6..patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist