gcc/libstdc++-v3/testsuite/23_containers
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
..
array Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
bitset Update copyright years. 2018-01-03 11:03:58 +01:00
deque 48101_neg.cc: Remove dg-prune-output 'std' from regex pattern for versioned namespace... 2018-10-28 20:57:04 +00:00
forward_list PR libstdc++/87809 avoid invalid expressions in exception specifications 2018-10-30 14:49:43 +00:00
headers Update copyright years. 2018-01-03 11:03:58 +01:00
list PR libstdc++/87809 avoid invalid expressions in exception specifications 2018-10-30 14:49:43 +00:00
map Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
multimap Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
multiset Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
priority_queue Update copyright years. 2018-01-03 11:03:58 +01:00
queue Update copyright years. 2018-01-03 11:03:58 +01:00
set Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
stack Update copyright years. 2018-01-03 11:03:58 +01:00
unordered_map Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
unordered_multimap Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
unordered_multiset Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
unordered_set Skip tests for GNU extensions when testing with strict mode 2018-10-19 22:50:15 +01:00
vector PR libstdc++/87809 avoid invalid expressions in exception specifications 2018-10-30 14:49:43 +00:00