gcc/libstdc++-v3/testsuite
Jonathan Wakely aa475c4ac8 libstdc++: Implement LWG 1203 for rvalue iostreams
This implements the resolution of LWG 1203 so that the constraints for
rvalue stream insertion/extraction are simpler, and the return type is
the original rvalue stream type not its base class.

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

libstdc++-v3/ChangeLog:

	* include/std/istream (operator>>(Istream&&, x&)): Simplify, as
	per LWG 1203.
	* include/std/ostream (operator<<(Ostream&&, const x&)):
	Likewise.
	* testsuite/27_io/basic_istream/extractors_character/char/lwg2499_neg.cc:
	Adjust dg-error pattern.
	* testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499_neg.cc:
	Likewise.
	* testsuite/27_io/basic_istream/extractors_other/char/4.cc: Define
	is_extractable trait to replace std::__is_extractable. Make it
	work with rvalue streams as well as lvalues, to replace f() and
	g() helper functions.
	* testsuite/27_io/basic_istream/extractors_other/wchar_t/4.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_other/char/6.cc:
	Define is_insertable trait to replace std::__is_insertable. Make
	it work with rvalue streams as well as lvalues, to replace f()
	and g() helper functions.
	* testsuite/27_io/basic_ostream/inserters_other/wchar_t/6.cc:
	Likewise.
	* testsuite/27_io/filesystem/path/io/dr2989.cc: Prune additional
	errors from new constraints.
	* testsuite/27_io/rvalue_streams-2.cc: Remove PR 80675 checks,
	which are no longer expected to compile.
	* testsuite/27_io/rvalue_streams.cc: Adjust existing test.
	Verify LWG 1203 changes.
2021-04-30 14:33:19 +01:00
..
17_intro libstdc++: Fix test that fails in C++20 mode [PR 99995] 2021-04-12 11:34:19 +01:00
18_support libstdc++: Move atomic functions to libsupc++ [PR 96657] 2021-04-15 16:56:44 +01:00
19_diagnostics libstdc++: Fix incorrect test for std::error_code comparisons 2021-02-03 15:49:36 +00:00
20_util libstdc++: Add testcase for std::pair as a structural type [PR 97930] 2021-04-28 18:17:40 +01:00
21_strings libstdc++: Define __cpp_lib_constexpr_string macro 2021-04-28 15:56:04 +01:00
22_locale
23_containers libstdc++: Fix invalid constexpr function in C++11 mode [PR 99985] 2021-04-09 13:09:24 +01:00
24_iterators libstdc++: Implement P2259R1 changes [PR95983] 2021-04-20 09:18:50 -04:00
25_algorithms libstdc++: [_GLIBCXX_DEBUG] Fix management of __dp_sign_max_size [PR 99402] 2021-04-09 21:46:35 +02:00
26_numerics libstdc++: Fix some tests that fail in C++20 mode 2021-04-12 12:30:07 +01:00
27_io libstdc++: Implement LWG 1203 for rvalue iostreams 2021-04-30 14:33:19 +01:00
28_regex
29_atomics Revert "libstdc++: Add workaround for ia32 floating atomics miscompilations [PR100184]" 2021-04-27 15:29:26 +02:00
30_threads libstdc++: Fix semaphore to work with system_clock timeouts 2021-04-22 17:35:00 +01:00
abi
backward
config
data
decimal
experimental libstdc++: Use <sys/socket.h> features conditionally [PR 100285] 2021-04-30 14:29:20 +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-04-30 14:25:08 +01:00
libstdc++-abi
libstdc++-dg libstdc++: Add std::experimental::simd from the Parallelism TS 2 2021-01-27 16:37:26 +00:00
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
std libstdc++: Fix up lambda in join_view::_Iterator::operator++ [PR100290] 2021-04-27 14:07:46 -04:00
tr1 libstdc++: Fix some tests that fail in C++20 mode 2021-04-12 12:30:07 +01:00
tr2
util libstdc++ Simplify definition of net::socket_base constants 2021-04-23 13:54:34 +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