-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.0, 6.1, 6.2
-
None
This code regressed in Qt 6:
QVector<int> v;
v.resize(4);
v.erase(v.begin());
while (v.size() < v.capacity()) {
v.push_back(0);
}
The while loop never terminates; the vector is reallocated too early, when size() == capacity() - 1, and keeps getting reallocated like that.
- relates to
-
QTBUG-93019 [REG 5.15-6.0] QList/QVector regressions
-
- Open
-