PR libstdc++/86292 fix exception safety of std::vector<InputIterator> constructor
authorJonathan Wakely <jwakely@redhat.com>
Mon, 25 Jun 2018 16:46:33 +0000 (17:46 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 25 Jun 2018 16:46:33 +0000 (17:46 +0100)
commit3685dcd7fb618b8dc7c7352a76a55efa959aae84
tree1aeddbf1357b2f3f31a97780ba5c469d890d0437
parentb03f3a94e6d33afda64661776256517aa1b63ea6
PR libstdc++/86292 fix exception safety of std::vector<InputIterator> constructor

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: r262029
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/testsuite/23_containers/vector/cons/86292.cc [new file with mode: 0644]