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++/32992] [4.1/4.2/4.3 Regression] Incorrect code generated for anonymous union and return



------- Comment #3 from jakub at gcc dot gnu dot org  2007-08-15 12:08 -------
Subject: Bug 32992

Author: jakub
Date: Wed Aug 15 12:08:42 2007
New Revision: 127510

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127510
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:
    trunk/gcc/testsuite/g++.dg/opt/nrv14.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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