[Bug c++/54197] [4.7/4.8 regression] Lifetime of reference not properly extended

aaw at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 31 17:17:00 GMT 2012


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

--- Comment #6 from Ollie Wild <aaw at gcc dot gnu.org> 2012-08-31 17:16:47 UTC ---
Author: aaw
Date: Fri Aug 31 17:16:39 2012
New Revision: 190839

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190839
Log:
Backport from mainline
2012-08-31  Ollie Wild  <aaw@google.com>

    PR c++/54197
    * gcc/cp/call.c (extend_ref_init_temps_1): Handle COMPOUND_EXPR trees.
    * gcc/testsuite/g++.dg/init/lifetime3.C: New test.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/init/lifetime3.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/call.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list