Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
5.6.2, 5.8.0, 5.10
-
None
-
dbd55cdaf367bdc9d6774bcb9927cbe19f18065f 4084f96052ea1568c847f8cfb52b6ae6d205ec4d
Description
This code
#include <QtCore> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QHash<int, int> h1, h2; h1.insertMulti(0, 0); h1.insertMulti(0, 1); h2.insertMulti(0, 1); h2.insertMulti(0, 0); Q_ASSERT(h1 == h2); }
asserts. Same with QMap and the Multi variants. A quick peek at the operator== shows that they're completely wrong for the multikey case.
Attachments
Issue Links
- relates to
-
QTBUG-60399 QMap::insertMulti / QMultiMap does not honour stability of insertion
-
- Reported
-
For Gerrit Dashboard: QTBUG-60395 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
192708,9 | QHash/QMultiHash: fix operator== | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |
193913,3 | QHash/QMultiHash: fix operator== | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |