This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51406] [4.5/4.6/4.7 Regression][c++0x] Incorrect result of static_cast to rvalue reference to base class.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51406

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-14 16:03:45 UTC ---
Author: jason
Date: Wed Dec 14 16:03:37 2011
New Revision: 182340

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182340
Log:
    PR c++/51406
    PR c++/51161
    * typeck.c (build_static_cast_1): Fix cast of lvalue to
    base rvalue reference.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/cpp0x/rv-cast3.C
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/cpp0x/rv-cast4.C
Modified:
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/typeck.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]