diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-11 22:00:06 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-11 22:00:06 +0000 |
commit | 9fc563c92bbe7008c5c52fd08db8e60ab8b9b0c3 (patch) | |
tree | dd92eb9594d145c9a1cbd548aadb98292d461fc5 /libstdc++-v3 | |
parent | 895fb8da30779c9c467bc8b60b762f98fbdceb1a (diff) | |
download | gcc-9fc563c92bbe7008c5c52fd08db8e60ab8b9b0c3.tar.gz |
PR c++/48457, Core 1238
* call.c (reference_binding): Allow rvalue reference to bind to
function lvalue.
* tree.c (lvalue_kind): Functions are always lvalues.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172282 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/is_convertible/value.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c4ed61f5376..5768ea60708 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2011-04-08 Jason Merrill <jason@redhat.com> + + * testsuite/20_util/is_convertible/value.cc: Adjust. + 2011-04-11 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/25_algorithms/inplace_merge/moveable.cc: Actually run diff --git a/libstdc++-v3/testsuite/20_util/is_convertible/value.cc b/libstdc++-v3/testsuite/20_util/is_convertible/value.cc index f6282a90196..fc6007ac555 100644 --- a/libstdc++-v3/testsuite/20_util/is_convertible/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_convertible/value.cc @@ -93,7 +93,7 @@ void test01() const volatile int&>(false)) ); VERIFY( (test_relationship<is_convertible, volatile int, volatile int&>(false)) ); - VERIFY( (test_relationship<is_convertible, int(int), int(&)(int)>(false)) ); + VERIFY( (test_relationship<is_convertible, int(int), int(&)(int)>(true)) ); VERIFY( (test_relationship<is_convertible, int&, ExplicitClass>(false)) ); VERIFY( (test_relationship<is_convertible, void*, ExplicitClass>(false)) ); |