re PR c++/51406 ([c++0x] Incorrect result of static_cast to rvalue reference to base...
authorJason Merrill <jason@redhat.com>
Thu, 3 Mar 2016 22:43:09 +0000 (17:43 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 3 Mar 2016 22:43:09 +0000 (17:43 -0500)
commit16dc6b178ad855c581670d85472f5f52835abb4b
treeb51072f1908394bbc43aa74580e49212a6ded628
parent639475f047006ae1008d6dedaabdb56aba03a731
re PR c++/51406 ([c++0x] Incorrect result of static_cast to rvalue reference to base class.)

PR c++/51406

* typeck.c (build_static_cast_1): Avoid folding back to lvalue.

From-SVN: r233946
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp0x/rv-cast5.C [new file with mode: 0644]