Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132536

QSet::intersect() picks equivalent elements inconsistently from `other` or *this

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.9, 6.8.3, 6.9.0 Beta3, 6.10.0 FF
    • 5.2.1, 5.3.2, 5.4.2, 5.5.1, 5.6.3, 5.7.2, 5.8.0, 5.9.9, 5.10.1, 5.11.3, 5.12.12, 5.13.2, 5.14.2, 5.15.18, 6.0.4, 6.1.3, 6.2.13, 6.3.2, 6.4.3, 6.5.8, 6.6.3, 6.7.3, 6.8.1, 6.9.0 Beta1
    • None
    • 2
    • 0d4fd5c54 (dev), 162015e9c (dev), eb13efc4a (6.9), 12f39bb2a (6.9), 88d9371d2 (6.8), eb10876c7 (6.8), c52fc83d9 (tqtc/lts-6.5), 40434eec8 (tqtc/lts-6.2), 027e80bfd (tqtc/lts-6.5), 84cbcf52c (tqtc/lts-5.15)
    • Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124

    Description

      https://doc.qt.io/qt-6/qset.html#intersect says:

      Removes all items from this set that are not contained in the other set.

      Since Qt 5.2 (https://codereview.qt-project.org/c/qt/qtbase/+/57830), this is not what the implementation does, anymore, because it takes elements from other instead, if that was smaller than *this.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mmutz Marc Mutz
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: