Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.8.0
-
None
-
1
-
Foundation Sprint 122
Description
https://doc.qt.io/qt-6/qset.html#unite says:
Each item in the other set that isn't already in this set is inserted into this set.
This is not what the implementation does:
for (const auto &e : std::as_const(other)) insert(e);
Since https://codereview.qt-project.org/c/qt/qtbase/+/531872, which set is *this and which is other is now "random". Created QTBUG-132500 to track that aspect of the problem.
Once QTBUG-132500 is fixed, fix the docs to match the implementation again.
Attachments
Issue Links
- relates to
-
QTBUG-132500 [REG 6.7 -> 6.8] QSet::unite() no longer consistently picks equivalent elements from `other`
-
- Closed
-
-
QTBUG-132536 QSet::intersect() picks equivalent elements inconsistently from `other` or *this
-
- Closed
-