This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32992] [4.1/4.2/4.3 Regression] Incorrect code generated for anonymous union and return
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2007 08:11:13 -0000
- Subject: [Bug c++/32992] [4.1/4.2/4.3 Regression] Incorrect code generated for anonymous union and return
- References: <bug-32992-14600@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jakub at gcc dot gnu dot org 2007-08-20 08:11 -------
Subject: Bug 32992
Author: jakub
Date: Mon Aug 20 08:10:54 2007
New Revision: 127640
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127640
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_2-branch/gcc/testsuite/g++.dg/opt/nrv14.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/decl.c
branches/gcc-4_2-branch/gcc/cp/typeck.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32992