https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125374
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <[email protected]>: https://gcc.gnu.org/g:6d114645fa1c9831a109c8a8934685f49364818a commit r17-605-g6d114645fa1c9831a109c8a8934685f49364818a Author: Patrick Palka <[email protected]> Date: Tue May 19 13:43:10 2026 -0400 libstdc++: Fix incorrect move in flat_map::_M_try_emplace [PR125374] PR libstdc++/125374 libstdc++-v3/ChangeLog: * include/std/flat_map (_Flat_map_impl::_M_try_emplace): Forward instead of unconditionally moving __k when inserting it. * testsuite/23_containers/flat_map/1.cc (test10): New test. Reviewed-by: Jonathan Wakely <[email protected]>
