- 
    
Bug
 - 
    Resolution: Done
 - 
    
P1: Critical
 - 
    6.1.0
 - 
    None
 - 
    Windows 10, MSVC 16.8.4
 
Release mode, 32-bit.
Program:
#include <QDebug> #include <QVector> int main(int, char **) { QVector<qint64> v; for (int i = 0; i < 7; ++i) { v.append(i); qDebug() << i << v.at(i); } qDebug() << v; return 0; }
Expected result:
0 0 1 1 2 2 3 3 4 4 5 5 6 6 QList(0, 1, 2, 3, 4, 5, 6)
Invalid results:
0 0 1 1 2 2 3 3 4 4 5 5 6 6 QList(0, 1, 2, 3, 4, -930837747982139387, 6) ... QList(0, 1, 2, 3, 4, 61361544922923013, 6) ... QList(0, 1, 2, 3, 4, 79657418409115653, 6)
| For Gerrit Dashboard: QTBUG-90359 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 330685,2 | Add new reallocation API to QArrayData | dev | qt/qtbase | Status: ABANDONED | 0 | 0 | 
| 330695,2 | Deprecate old reallocation API in QArrayData | dev | qt/qtbase | Status: ABANDONED | 0 | 0 | 
| 331093,6 | Extend alignment of QArrayData to std::max_align_t in allocation | dev | qt/qtbase | Status: MERGED | +2 | 0 | 
| 331261,2 | Extend alignment of QArrayData to std::max_align_t in allocation | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |