]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/86292 fix exception safety of std::vector<InputIterator> constructor
authorJonathan Wakely <jwakely@redhat.com>
Tue, 7 Aug 2018 22:50:33 +0000 (23:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 7 Aug 2018 22:50:33 +0000 (23:50 +0100)
commit16c2ce4b4d4a27e3e9d0f643b727d267d4da2487
tree0186f100adef485654261484e74156140b567503
parentdb1e6ce9e8d50ee7975f8fa7e6a0c5ac5cdf425f
PR libstdc++/86292 fix exception safety of std::vector<InputIterator> constructor

Backport from mainline
2018-06-25  Jonathan Wakely  <jwakely@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.

From-SVN: r263379
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/testsuite/23_containers/vector/cons/86292.cc [new file with mode: 0644]