This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r127641 - in /branches/gcc-4_1-branch/gcc: cp/C...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 20 Aug 2007 08:17:22 -0000
- Subject: r127641 - in /branches/gcc-4_1-branch/gcc: cp/C...
Author: jakub
Date: Mon Aug 20 08:17:21 2007
New Revision: 127641
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127641
Log:
PR c++/32992
* typeck.c (check_return_expr): Don't NRV optimize vars in
anonymous unions.
* decl.c (finish_function): Comment fix.
* g++.dg/opt/nrv14.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/opt/nrv14.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/cp/typeck.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog