Landing: f052dcf8699f

Project / Subsystem

gcc / libstdc++

Date

2026-05-29

Author

Patrick Palka

Commit

f052dcf8699fa650cda20944fdd3a96104b6830c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
f052dcf8699fa650cda20944fdd3a96104b6830c
source_type
github
headline
libstdc++: Correct swapping order for flat_set.
tldr
The order of swapping members in `flat_set::swap` has been corrected to swap the container first.
author
Patrick Palka
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • c++
  • stl
  • containers
discussion_id_link
bugzilla_pr
date
2026-05-29T00:00:00.000Z

The order of swapping members in flat_set::swap has been corrected. The container (_M_cont) is now swapped before the comparator. This fixes an accidental regression introduced in r17-908, ensuring correct behavior when swapping flat_set instances. This is an internal correction with likely no direct user impact.