gcc/libstdc++-v3/testsuite
François Dumont 01b1afdc35 libstdc++: [_GLIBCXX_DEBUG] Do not consider detached iterators as value-initialized
An attach iterator has its _M_version set to something != 0, the container version. This
value shall be preserved when detaching it so that the iterator does not look like a
value-initialized one.

libstdc++-v3/ChangeLog:

	* include/debug/formatter.h (__singular_value_init): New _Iterator_state enum entry.
	(_Parameter<>(const _Safe_iterator<>&, const char*, _Is_iterator)): Check if iterator
	parameter is value-initialized.
	(_Parameter<>(const _Safe_local_iterator<>&, const char*, _Is_iterator)): Likewise.
	* include/debug/safe_iterator.h (_Safe_iterator<>::_M_value_initialized()): New. Adapt
	checks.
	* include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_M_value_initialized()): New.
	Adapt checks.
	* src/c++11/debug.cc (_Safe_iterator_base::_M_reset): Do not reset _M_version.
	(print_field(PrintContext&, const _Parameter&, const char*)): Adapt state_names.
	* testsuite/23_containers/deque/debug/iterator1_neg.cc: New test.
	* testsuite/23_containers/deque/debug/iterator2_neg.cc: New test.
	* testsuite/23_containers/forward_list/debug/iterator1_neg.cc: New test.
	* testsuite/23_containers/forward_list/debug/iterator2_neg.cc: New test.
	* testsuite/23_containers/forward_list/debug/iterator3_neg.cc: New test.
2022-08-08 20:11:59 +02:00
..
17_intro libstdc++: Fixes for tests that fail with -fno-rtti 2022-05-05 21:13:58 +01:00
18_support libstdc++: Make std::rethrow_if_nested work without RTTI 2022-05-13 20:39:59 +01:00
19_diagnostics libstdc++: Reduce memory usage in std::stacktrace::current 2022-04-12 22:38:31 +01:00
20_util c++: Add __reference_con{struc,ver}ts_from_temporary [PR104477] 2022-07-15 11:30:38 -04:00
21_strings libstdc++: Make std::string_view(Range&&) constructor explicit 2022-08-04 19:37:56 +01:00
22_locale libstdc++: Fixes for tests that fail with -fno-rtti 2022-05-05 21:13:58 +01:00
23_containers libstdc++: [_GLIBCXX_DEBUG] Do not consider detached iterators as value-initialized 2022-08-08 20:11:59 +02:00
24_iterators libstdc++: Fix std::common_iterator triviality [PR100823] 2022-07-20 23:38:48 +01:00
25_algorithms libstdc++: Avoid double-deref of __first in ranges::minmax [PR104858] 2022-04-15 14:41:14 -04:00
26_numerics libstdc++: testsuite: complex proj requirements 2022-06-27 10:34:18 -03:00
27_io libstdc++: Add comparisons to std::default_sentinel_t (LWG 3719) 2022-08-04 19:37:56 +01:00
28_regex libstdc++: Add comparisons to std::default_sentinel_t (LWG 3719) 2022-08-04 19:37:56 +01:00
29_atomics libstdc++: Use type_identity_t for non-deducible std::atomic_xxx args 2022-06-13 16:39:07 +01:00
30_threads libstdc++: testsuite: tolerate non-cancelling sleep 2022-06-23 23:25:52 -03:00
abi Update copyright years. 2022-01-03 10:42:10 +01:00
backward Update copyright years. 2022-01-03 10:42:10 +01:00
config Update copyright years. 2022-01-03 10:42:10 +01:00
data
decimal Update copyright years. 2022-01-03 10:42:10 +01:00
experimental libstdc++: Add feature test macro for <experimental/scope> 2022-08-05 15:17:57 +01:00
ext libstdc++: testsuite: Add missing <string> header 2022-06-27 11:08:17 +01:00
lib libstdc++: xfail experimental/net tests on rtems 2022-06-27 10:34:14 -03:00
libstdc++-abi Update copyright years. 2022-01-03 10:42:10 +01:00
libstdc++-dg Update copyright years. 2022-01-03 10:42:10 +01:00
libstdc++-prettyprinters libstdc++: Add pretty printer for std::atomic 2022-04-27 15:48:32 +01:00
libstdc++-xmethods Update copyright years. 2022-01-03 10:42:10 +01:00
performance libstdc++: Optimize operations on small size hashtable [PR 68303] 2022-01-05 21:46:52 +01:00
special_functions Update copyright years. 2022-01-03 10:42:10 +01:00
std libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
tr1 libstdc++: Fixes for tests that fail with -fno-rtti 2022-05-05 21:13:58 +01:00
tr2 libstdc++: Fixes for tests that fail with -fno-rtti 2022-05-05 21:13:58 +01:00
util libstdc++: Complete __gnu_debug::string Standard conformity 2022-07-19 20:07:28 +02:00
Makefile.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.in libstdc++: Define <stacktrace> header for C++23 2022-01-17 12:13:02 +00:00