https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119137
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tomasz Kaminski <tkami...@gcc.gnu.org>: https://gcc.gnu.org/g:ae00818713756fd45ee379a8a30ae907959433fe commit r16-2398-gae00818713756fd45ee379a8a30ae907959433fe Author: Tomasz KamiÅski <tkami...@redhat.com> Date: Tue Jul 22 09:32:47 2025 +0200 libstdc++: Fix obvious mistake in inplace_vector::assign_range [PR119137] In case of input iterators, the loop that assigns to existing elements should run up to number of elements in vector (_M_size) not capacity (_Nm). PR libstdc++/119137 libstdc++-v3/ChangeLog: * include/std/inplace_vector (inplace_vector::assign_range): Replace _Nm with _M_size in the assigment loop.