]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/51406 ([c++0x] Incorrect result of static_cast to rvalue reference to base...
authorJason Merrill <jason@redhat.com>
Wed, 14 Dec 2011 16:03:07 +0000 (11:03 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 14 Dec 2011 16:03:07 +0000 (11:03 -0500)
commit6831a7a521e7f3312b63142dcae176340bd77d02
tree744201a6a23c229712081ab5e4dad6bc4712dc08
parent693ef989320e02736448b005fcde66230bf8bc70
re PR c++/51406 ([c++0x] Incorrect result of static_cast to rvalue reference to base class.)

PR c++/51406
PR c++/51161
* typeck.c (build_static_cast_1): Fix cast of lvalue to
base rvalue reference.

From-SVN: r182339
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]