gcc/libstdc++-v3/testsuite
Jonathan Wakely 573c2ffd3c libstdc++: Value-initialize objects held by EBO helpers [PR 100863]
The allocator, hash function and equality function should all be
value-initialized by the default constructor of an unordered container.
Do it in the EBO helper, so we don't have to get it right in multiple
places.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	PR libstdc++/100863
	PR libstdc++/65816
	* include/bits/hashtable_policy.h (_Hashtable_ebo_helper):
	Value-initialize subobject.
	* testsuite/23_containers/unordered_map/allocator/default_init.cc:
	Remove XFAIL.
	* testsuite/23_containers/unordered_set/allocator/default_init.cc:
	Remove XFAIL.

(cherry picked from commit f8f0193b5b)
2021-10-12 20:40:37 +01:00
..
17_intro libstdc++: Fix 17_intro/names.cc failures on Solaris 2021-10-12 20:40:36 +01:00
18_support libstdc++: Fix std::numeric_limits::lowest() test for strict modes 2021-10-12 11:45:45 +01:00
19_diagnostics libstdc++: std::system_category should know meaning of zero [PR102425] 2021-10-12 11:45:44 +01:00
20_util libstdc++: Add warnings for some C++23 deprecations 2021-10-12 20:40:37 +01:00
21_strings libstdc++: Ensure std::span and std::string_view are trivially copyable (P2251R1) 2021-10-12 11:45:45 +01:00
22_locale Update copyright years. 2021-01-04 10:26:59 +01:00
23_containers libstdc++: Value-initialize objects held by EBO helpers [PR 100863] 2021-10-12 20:40:37 +01:00
24_iterators libstdc++: Implement LWG 3391 changes to move/counted_iterator::base() 2021-06-10 14:58:53 -04:00
25_algorithms libstdc++: Add missing std::move to ranges::copy/move/reverse_copy [PR101599] 2021-10-12 13:56:15 -04:00
26_numerics libstdc++: Add additional overload of std::lerp [PR101870] 2021-10-12 11:45:44 +01:00
27_io libstdc++: Skip filesystem tests that depend on permissions [PR90787] 2021-10-12 20:40:36 +01:00
28_regex libstdc++: Fix std::match_results::end() for failed matches [PR102667] 2021-10-12 11:45:42 +01:00
29_atomics libstdc++: Fix UB in atomic_ref/wait_notify.cc [PR101761] 2021-10-12 11:45:44 +01:00
30_threads libstdc++: Fix for deadlock in std::counting_semaphore [PR100806] 2021-06-22 11:07:58 -07:00
abi Update copyright years. 2021-01-04 10:26:59 +01:00
backward Update copyright years. 2021-01-04 10:26:59 +01:00
config Update copyright years. 2021-01-04 10:26:59 +01:00
data
decimal Update copyright years. 2021-01-04 10:26:59 +01:00
experimental libstdc++: Skip filesystem tests that depend on permissions [PR90787] 2021-10-12 20:40:36 +01:00
ext libstdc++: Suppress more vstring testsuite warnings. [PR 98613] 2021-01-10 18:22:51 -05:00
lib libstdc++: Define effective-target for net::ip features [PR 100351] 2021-08-24 15:13:17 +01:00
libstdc++-abi Update copyright years. 2021-01-04 10:26:59 +01:00
libstdc++-dg libstdc++: Add std::experimental::simd from the Parallelism TS 2 2021-01-27 16:37:26 +00:00
libstdc++-prettyprinters libstdc++: Add pretty printer for std::error_code and std::error_condition 2021-10-12 11:45:44 +01:00
libstdc++-xmethods Update copyright years. 2021-01-04 10:26:59 +01:00
performance Update copyright years. 2021-01-04 10:26:59 +01:00
special_functions Update copyright years. 2021-01-04 10:26:59 +01:00
std libstdc++: Add default template argument to basic_istream_view 2021-08-23 17:02:53 +01:00
tr1 libstdc++: Fix some tests that fail in C++20 mode 2021-04-12 12:30:07 +01:00
tr2 Update copyright years. 2021-01-04 10:26:59 +01:00
util libstdc++: Skip filesystem tests that depend on permissions [PR90787] 2021-10-12 20:40:36 +01:00
Makefile.am libstdc++: Work around test failures using -mno-tree-vrp 2021-02-03 15:49:30 +00:00
Makefile.in libstdc++: Work around test failures using -mno-tree-vrp 2021-02-03 15:49:30 +00:00