PR c++/51406
commit0140d7031ef00bcb562bf4da08e86a94c10da30c
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Dec 2011 05:18:39 +0000 (14 05:18 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Dec 2011 05:18:39 +0000 (14 05:18 +0000)
tree9fb673218f2b6198b16aae17a2adca505dd879b5
parent612cc2ea107e0b667a4f78fa82318c2b4052a814
PR c++/51406
PR c++/51161
* typeck.c (build_static_cast_1): Fix cast of lvalue to
base rvalue reference.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182322 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/rv-cast3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/rv-cast4.C [new file with mode: 0644]