gcc/libstdc++-v3/testsuite/23_containers/vector/cons
Jonathan Wakely 0321d9fac6 PR libstdc++/87809 avoid invalid expressions in exception specifications
If the allocator isn't default constructible then checking if the
default constructor throws in an exception specification makes the
declaration invalid. Use the type trait instead.

	PR libstdc++/87809
	* include/bits/forward_list.h (_Fwd_list_impl::_Fwd_list_impl()): Use
	trait in exception-specification instead of possibly invalid
	expression.
	* include/bits/stl_bvector.h (_Bvector_impl::_Bvector_impl()):
	Likewise.
	* include/bits/stl_list.h (_List_impl::_List_impl()): Likewise.
	* include/bits/stl_vector.h (_Vector_impl::_Vector_impl()): Likewise.
	* testsuite/23_containers/forward_list/cons/87809.cc: New test.
	* testsuite/23_containers/list/cons/87809.cc: New test.
	* testsuite/23_containers/vector/bool/cons/87809.cc: New test.
	* testsuite/23_containers/vector/cons/87809.cc: New test.

From-SVN: r265626
2018-10-30 14:49:43 +00:00
..
1.cc Update copyright years. 2018-01-03 11:03:58 +01:00
2.cc Update copyright years. 2018-01-03 11:03:58 +01:00
3.cc Update copyright years. 2018-01-03 11:03:58 +01:00
4.cc Update copyright years. 2018-01-03 11:03:58 +01:00
6513.cc Update copyright years. 2018-01-03 11:03:58 +01:00
55977.cc Update copyright years. 2018-01-03 11:03:58 +01:00
86292.cc PR libstdc++/86292 fix exception safety of std::vector<InputIterator> constructor 2018-06-25 17:46:33 +01:00
87809.cc PR libstdc++/87809 avoid invalid expressions in exception specifications 2018-10-30 14:49:43 +00:00
clear_allocator.cc Update copyright years. 2018-01-03 11:03:58 +01:00
cons_size.cc Update copyright years. 2018-01-03 11:03:58 +01:00
deduction.cc Update copyright years. 2018-01-03 11:03:58 +01:00
destructible_debug_neg.cc Forward declare debug containers so std::pmr aliases work 2018-08-24 18:43:18 +01:00
destructible_neg.cc Fix some libstdc++ testsuite failures 2018-03-21 12:32:14 +00:00
moveable.cc Update copyright years. 2018-01-03 11:03:58 +01:00
moveable2.cc Update copyright years. 2018-01-03 11:03:58 +01:00
noexcept_move_construct.cc stl_vector.h (struct _Vector_base<>::_Vector_impl_data): New. 2018-06-27 20:23:20 +00:00