Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.6, 6.4.3, 6.5.0, 6.5.2, 6.5.3
-
None
-
8
-
fd6ecd856 (dev), d4c9dbf54 (tqtc/lts-6.2), 29b32d628 (6.5)
-
Foundation PM Prioritized, Foundations Sprint 80, Foundation Sprint 81, Foundation Sprint 82, Foundation Sprint 83, Foundation Sprint 84, Foundation Sprint 85, Foundation Sprint 86, Foundation Sprint 87, Foundation Sprint 88
Description
QAnyStringView has no implicit conversion (constructor) for char[] where the length of the array is not known at compile-time.
This causes code that compiles with QString overloads to no longer compile with QAnyStringView/QUtf8StringView overloads (see attached code for an example where the port to QAnyStringView in Qt 6.5 caused Qt 6.4 code to fail to compile).
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-112746 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
474426,3 | QStringView: fix construction from arrays of unknown size | dev | qt/qtbase | Status: NEW | -1 | 0 |
474604,1 | QStringView: fix lengthHelperPointer()'s constexpr | dev | qt/qtbase | Status: NEW | -1 | 0 |
474372,1 | tst_QAnyStringView: check construction from array of unknown size | 6.4 | qt/qtbase | Status: ABANDONED | -1 | 0 |
474425,2 | Q{Any,Utf8,}StringView: fix docs of generic Container ctor | dev | qt/qtbase | Status: MERGED | +2 | 0 |
475893,2 | Q{Any,Utf8,}StringView: fix docs of generic Container ctor | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
475894,2 | Q{Any,Utf8,}StringView: fix docs of generic Container ctor | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |