Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.2.5, 6.3.1, 6.4.0 Beta3
Description
But it might. When an item is freed, if there was previously another element inserted that would have otherwise ended up in that slot it will have moved to the next 'free' slot. So, when an element is erase()d we move the second element into its slot. This item may happen to be an item that has been visited earlier!
Example found here:
https://doc.qt.io/qt-6/qhash.html#erase
Attachments
Issue Links
- relates to
-
QTBUG-101754 QHash::erase edge-case when erasing elements while traversing
-
- Reported
-