gcc/libstdc++-v3/testsuite
Jason Merrill e7f1930f94 call.c (convert_class_to_reference): Binding an lvalue to an rvalue reference is bad.
* call.c (convert_class_to_reference): Binding an lvalue to an
	rvalue reference is bad.  If the user-defined conversion is bad,
	set bad_p before merging conversions.
	(maybe_handle_ref_bind): Don't push down bad_p.
	(reference_binding): Binding an lvalue to an rvalue reference is bad.
	(convert_like_real): Give a helpful error about binding lvalue
	to rvalue reference.
	(reference_related_p): No longer static.
	* typeck.c (build_typed_address): New.
	(build_static_cast_1): Add static_cast from lvalue to &&.
	* cp-tree.h: Adjust.

	* include/bits/move.h (forward): Implement as in N2835.
	(move): Implement as in N2831.
	* include/std/istream (rvalue stream operator>>): New.
	* include/std/ostream (rvalue stream operator<<): New.

Co-Authored-By: Douglas Gregor <doug.gregor@gmail.com>

From-SVN: r150327
2009-07-31 22:26:42 -04:00
..
17_intro Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
18_support re PR libstdc++/40915 ([4.5 Regressions] FAIL: 18_support/headers/exception/synopsis.cc (test for excess errors)) 2009-07-30 15:26:44 +00:00
19_diagnostics call.c (implicit_conversion): Handle conversion from initializer-list to scalar. 2009-05-27 18:23:41 -04:00
20_util forward_list.h (splice_after): Use forward. 2009-07-31 22:26:32 -04:00
21_strings cwchar (swprintf, vswprintf): Do not use if _GLIBCXX_HAVE_BROKEN_VSWPRINTF. 2009-07-24 21:55:59 +01:00
22_locale re PR libstdc++/40712 (locale(const locale&, const char*, locale::category) can create broken locale) 2009-07-18 22:58:10 +00:00
23_containers forward_list.h (splice_after): Use forward. 2009-07-31 22:26:32 -04:00
24_iterators 2009-06-20 Paolo Carlini <paolo.carlini@oracle.com> 2009-06-21 00:57:56 +00:00
25_algorithms re PR libstdc++/40600 (pair& operator=(pair&& __p) doesn't work without inlining) 2009-06-30 12:09:57 +00:00
26_numerics re PR libstdc++/40919 (FAIL: 26_numerics/headers/cmath/c99_classification_macros_c.cc) 2009-07-30 22:34:31 +00:00
27_io call.c (convert_class_to_reference): Binding an lvalue to an rvalue reference is bad. 2009-07-31 22:26:42 -04:00
28_regex Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
29_atomics testsuite_common_types.h (standard_layout): Activate. 2009-07-17 00:16:33 +00:00
30_threads forward_list.h (splice_after): Use forward. 2009-07-31 22:26:32 -04:00
abi Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
backward Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
config Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
data Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
ext * 2009-07-05 18:59:29 +01:00
lib cwchar (swprintf, vswprintf): Do not use if _GLIBCXX_HAVE_BROKEN_VSWPRINTF. 2009-07-24 21:55:59 +01:00
libstdc++-abi Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
libstdc++-dg Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
performance future: New. 2009-06-21 15:02:09 +01:00
tr1 Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
util re PR libstdc++/40917 (FAIL: ext/array_allocator/check_delete.cc (test for excess errors)) 2009-07-30 21:02:44 +00:00
Makefile.am Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
Makefile.in abi.exp: Add multilib support. 2009-02-23 20:42:53 +00:00