gcc/libstdc++-v3/testsuite/23_containers/vector
Jonathan Wakely d331c5f10d PR libstdc++/89416 fix __is_move_insertable trait
The common base class for __is_move_insertable and __is_copy_insertable
instantiates both the copy and move tests, when only one is needed. The
unneeded one might cause errors outside the immediate context.

The solution used in this patch is to replace them with alias templates,
which will only be instantiated as needed.

	PR libstdc++/89416
	* include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
	class template with class. Replace move and copy member types with
	member alias templates, so they are only instantiated when needed.
	(__is_copy_insertable, __is_move_insertable): Adjust base class.
	* testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
	test for C++11/14/17 as well.
	* testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
	test.

From-SVN: r269075
2019-02-21 20:47:43 +00:00
..
allocator Update copyright years. 2019-01-01 13:31:55 +01:00
bool Update copyright years. 2019-01-01 13:31:55 +01:00
capacity Update copyright years. 2019-01-01 13:31:55 +01:00
cons Update copyright years. 2019-01-01 13:31:55 +01:00
data_access Update copyright years. 2019-01-01 13:31:55 +01:00
debug Update copyright years. 2019-01-01 13:31:55 +01:00
element_access Update copyright years. 2019-01-01 13:31:55 +01:00
ext_pointer Update copyright years. 2019-01-01 13:31:55 +01:00
modifiers PR libstdc++/89416 fix __is_move_insertable trait 2019-02-21 20:47:43 +00:00
profile re PR libstdc++/68838 (AIX 32 bit wchar_t testsuite failures) 2016-11-29 12:50:27 -05:00
requirements Update copyright years. 2019-01-01 13:31:55 +01:00
types Update copyright years. 2019-01-01 13:31:55 +01:00
14340.cc Update copyright years. 2019-01-01 13:31:55 +01:00
15523.cc Update copyright years. 2019-01-01 13:31:55 +01:00
18604.cc Update copyright years. 2019-01-01 13:31:55 +01:00
26412-1.cc Update copyright years. 2019-01-01 13:31:55 +01:00
26412-2.cc Update copyright years. 2019-01-01 13:31:55 +01:00
40192.cc Update copyright years. 2019-01-01 13:31:55 +01:00
48101-2_neg.cc Update copyright years. 2019-01-01 13:31:55 +01:00
48101_neg.cc Update copyright years. 2019-01-01 13:31:55 +01:00
52591.cc Update copyright years. 2019-01-01 13:31:55 +01:00
58764.cc Update copyright years. 2019-01-01 13:31:55 +01:00
59829.cc Update copyright years. 2019-01-01 13:31:55 +01:00
63500.cc Update copyright years. 2019-01-01 13:31:55 +01:00
check_construct_destroy.cc Update copyright years. 2019-01-01 13:31:55 +01:00
debug_mode_requires_reallocation-1.cc Update copyright years. 2019-01-01 13:31:55 +01:00
debug_mode_requires_reallocation-2.cc Update copyright years. 2019-01-01 13:31:55 +01:00
erasure.cc Define __cpp_lib_erase_if feature test macro 2019-01-10 13:49:31 +00:00
init-list.cc Update copyright years. 2019-01-01 13:31:55 +01:00
pmr_typedefs.cc Update copyright years. 2019-01-01 13:31:55 +01:00
range_access.cc Update copyright years. 2019-01-01 13:31:55 +01:00
zero_sized_allocations.cc Update copyright years. 2019-01-01 13:31:55 +01:00