Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2
-
None
-
1
-
b7f40416692c357b440c885fe18fa70e2a829820 (qt/qtbase/dev) 5d344408cc7fc1d78f3857f33f7e9d94d08443ae (qt/qtbase/6.2)
-
Team 2 Foundation_Sprint 47
Description
The following snippet fails to compile (with both clang 12.01 and gcc 11.1.0):
#include <QString> #include <QAnyStringView> #include <QStringBuilder> void f(QAnyStringView ) {} int main() { f(u"a"_qs % u"b"_qs); }
Curiously enough, explicitly constructing a QAnyStringView works fine:
QAnyStringView view(u"a"_qs % u"b"_qs); // works