gcc/libstdc++-v3/testsuite/23_containers/vector/bool
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
..
allocator Update copyright years. 2018-01-03 11:03:58 +01:00
capacity Update copyright years. 2018-01-03 11:03:58 +01:00
cons PR libstdc++/87809 avoid invalid expressions in exception specifications 2018-10-30 14:49:43 +00:00
hash Update copyright years. 2018-01-03 11:03:58 +01:00
modifiers Fix tests that fail in C++98 mode 2018-08-23 00:43:43 +01:00
requirements Update copyright years. 2018-01-03 11:03:58 +01:00
1.cc Update copyright years. 2018-01-03 11:03:58 +01:00
6886.cc Update copyright years. 2018-01-03 11:03:58 +01:00
21244.cc Update copyright years. 2018-01-03 11:03:58 +01:00
23632.cc Update copyright years. 2018-01-03 11:03:58 +01:00
72847.cc Remove dg-require-cstdint directive from tests 2018-07-26 15:02:26 +01:00
80893.cc Update copyright years. 2018-01-03 11:03:58 +01:00
82558.cc Update copyright years. 2018-01-03 11:03:58 +01:00
clear_allocator.cc Update copyright years. 2018-01-03 11:03:58 +01:00
emplace.cc Update copyright years. 2018-01-03 11:03:58 +01:00
emplace_cxx17_return.cc Update copyright years. 2018-01-03 11:03:58 +01:00
swap.cc Update copyright years. 2018-01-03 11:03:58 +01:00