https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51406
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Mar 3 22:45:22 2016 New Revision: 233949 URL: https://gcc.gnu.org/viewcvs?rev=233949&root=gcc&view=rev Log: PR c++/51406 * typeck.c (build_static_cast_1): Avoid folding back to lvalue. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/rv-cast5.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/typeck.c