https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86292
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Tue Aug 7 22:50:33 2018 New Revision: 263379 URL: https://gcc.gnu.org/viewcvs?rev=263379&root=gcc&view=rev Log: PR libstdc++/86292 fix exception safety of std::vector<InputIterator> constructor Backport from mainline 2018-06-25 Jonathan Wakely <jwak...@redhat.com> PR libstdc++/86292 * include/bits/stl_vector.h (vector::_M_range_initialize<InputIter>): Add try-catch block. * testsuite/23_containers/vector/cons/86292.cc: New. Added: branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/vector/cons/86292.cc Modified: branches/gcc-7-branch/libstdc++-v3/ChangeLog branches/gcc-7-branch/libstdc++-v3/include/bits/stl_vector.h