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
Attachments
For Gerrit Dashboard: QTBUG-98138 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
381515,6 | Add an initial tst_QAnyStringView | dev | qt/qtbase | Status: MERGED | +2 | 0 |
381562,5 | QAnyStringView: fix broken implicit conversion from QStringBuilder | dev | qt/qtbase | Status: MERGED | +2 | 0 |
381977,2 | Add an initial tst_QAnyStringView | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
382142,3 | QAnyStringView: fix broken implicit conversion from QStringBuilder | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |