gcc/libstdc++-v3/testsuite
Jonathan Wakely fe3ed885cd libstdc++: Limit new basic_string(nullptr_t) constructor to C++23 [PR104099]
The new deleted constructors added by P2166R1 are a breaking change,
making previously valid code ill-formed in C++23. As a result, they
should only be defined for C++23 and not for C++11 and up.

libstdc++-v3/ChangeLog:

	PR libstdc++/104099
	* include/bits/basic_string.h (basic_string(nullptr_t)): Only
	define for C++23.
	(operator=(nullptr_t)): Likewise.
	* include/bits/cow_string.h: Likewise.
	* include/std/string_view (basic_string_view(nullptr_t)):
	Likewise.
	* testsuite/21_strings/basic_string/cons/char/nullptr.cc: Adjust
	expected error. Add examples that become ill-formed in C++23.
	* testsuite/21_strings/basic_string_view/cons/char/nonnull.cc:
	Adjust expected errors.
	* testsuite/21_strings/basic_string_view/cons/wchar_t/nonnull.cc:
	Likewise.
2022-01-18 20:41:46 +00:00
..
17_intro libstdc++: Rename non-reserved macros in config header [PR103650] 2022-01-17 12:08:26 +00:00
18_support Testsuite: Make dependence on -fdelete-null-pointer-checks explicit 2022-01-08 22:17:18 -08:00
19_diagnostics Update copyright years. 2022-01-03 10:42:10 +01:00
20_util libstdc++: Fix ambiguous std::pair constructors [PR101124] 2022-01-18 16:31:03 +00:00
21_strings libstdc++: Limit new basic_string(nullptr_t) constructor to C++23 [PR104099] 2022-01-18 20:41:46 +00:00
22_locale libstdc++: Fix 22_locale/numpunct/members/char/3.cc execution test 2022-01-14 16:21:57 +01:00
23_containers libstdc++: Add self-merge check to std::forward_list::merge [PR103853] 2022-01-06 14:56:48 +00:00
24_iterators libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
25_algorithms libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
26_numerics Update copyright years. 2022-01-03 10:42:10 +01:00
27_io libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
28_regex libstdc++: Add dg-timeout-factor to some more regex tests 2022-01-10 12:18:14 +00:00
29_atomics libstdc++: Define <stdatomic.h> for C++23 2022-01-18 16:31:02 +00:00
30_threads Update copyright years. 2022-01-03 10:42:10 +01: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 Update copyright years. 2022-01-03 10:42:10 +01:00
ext libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
lib libstdc++: Define <stacktrace> header for C++23 2022-01-17 12:13:02 +00: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 Update copyright years. 2022-01-03 10:42:10 +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++: Make copyable-box completely constexpr (LWG 3572) 2022-01-11 15:17:26 +00:00
tr1 libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
tr2 Update copyright years. 2022-01-03 10:42:10 +01:00
util libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00: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