gcc/libstdc++-v3/testsuite
Jonathan Wakely 056551414a libstdc++: Clear RB tree after moving elements [PR103501]
If the allocator-extended move constructor move-constructs each element
into the new container, the contents of the old container are left in
moved-from states. We cannot know if those states preserve the
container's ordering and uniqueness guarantees, so just erase all
moved-from elements.

libstdc++-v3/ChangeLog:

	PR libstdc++/103501
	* include/bits/stl_tree.h (_Rb_tree(_Rb_tree&&, false_type)):
	Clear container if elements have been moved-from.
	* testsuite/23_containers/map/allocator/move_cons.cc: Expect
	moved-from container to be empty.
	* testsuite/23_containers/multimap/allocator/move_cons.cc:
	Likewise.
	* testsuite/23_containers/multiset/allocator/103501.cc: New test.
	* testsuite/23_containers/set/allocator/103501.cc: New test.
2021-12-01 15:00:33 +00:00
..
17_intro libstdc++: Fix test for libstdc++ not including <unistd.h> [PR100117] 2021-11-10 12:03:29 +00:00
18_support libstdc++: Add effective-target for std::allocator implementation 2021-11-23 21:23:24 +00:00
19_diagnostics libstdc++: Avoid unconditional use of errc::not_supported [PR 99327] 2021-10-01 20:34:50 +01:00
20_util libstdc++: Move std::to_address tests to more appropriate place 2021-11-26 12:38:35 +00:00
21_strings libstdc++: Fix tests that fail with fully-dynamic-string 2021-11-30 23:10:04 +00:00
22_locale libstdc++: Remove unnecessary uses of _GLIBCXX_USE_WCHAR_T in testsuite [PR98725] 2021-10-09 00:57:50 +01:00
23_containers libstdc++: Clear RB tree after moving elements [PR103501] 2021-12-01 15:00:33 +00:00
24_iterators libstdc++: Fix test that fails in C++20 mode 2021-11-26 22:56:51 +00:00
25_algorithms libstdc++: Remove redundant xfail selectors in dg-do compile tests 2021-11-26 15:11:58 +00:00
26_numerics libstdc++: Implement std::byteswap for C++23 2021-11-28 16:33:33 +01:00
27_io libstdc++: Fix dg-do directive for tests supposed to be run 2021-11-26 15:11:58 +00:00
28_regex libstdc++: Replace hyphens in effective target keywords 2021-11-24 13:20:26 +00:00
29_atomics libstdc++: Ensure dg-add-options comes after dg-options 2021-11-26 15:11:58 +00:00
30_threads libstdc++: Make std::jthread support pointers to member functions [PR 100612] 2021-10-01 20:36:55 +01:00
abi
backward
config
data
decimal
experimental libstdc++: Replace hyphens in effective target keywords 2021-11-24 13:20:26 +00:00
ext libstdc++: Add effective-target for std::allocator implementation 2021-11-23 21:23:24 +00:00
lib libstdc++: Replace hyphens in effective target keywords 2021-11-24 13:20:26 +00:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters libstdc++: Add xfail to some printer tests for debug mode 2021-11-24 13:20:26 +00:00
libstdc++-xmethods
performance
special_functions
std libstdc++: Implement P2432R1 changes for views::istream 2021-10-21 11:55:19 -04:00
tr1 libstdc++: Remove unnecessary uses of _GLIBCXX_USE_WCHAR_T in testsuite [PR98725] 2021-10-09 00:57:50 +01:00
tr2
util libstdc++: Fix std::type_info::before for ARM [PR103240] 2021-11-17 17:21:24 +00:00
Makefile.am libstdc++: Remove -fno-tree-vrp after PR98834 was resolved 2021-06-23 18:28:59 +01:00
Makefile.in libstdc++: Remove -fno-tree-vrp after PR98834 was resolved 2021-06-23 18:28:59 +01:00