This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41449] Partial aggregate initialization not cleaned up on exception
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Oct 2011 18:24:32 +0000
- Subject: [Bug c++/41449] Partial aggregate initialization not cleaned up on exception
- Auto-submitted: auto-generated
- References: <bug-41449-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41449
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-25 18:24:32 UTC ---
Author: jason
Date: Tue Oct 25 18:24:28 2011
New Revision: 180442
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180442
Log:
PR c++/50866
PR c++/41449
* semantics.c (maybe_cleanup_point_expr_void): No longer static.
* typeck2.c (split_nonconstant_init_1): Use it.
* cp-tree.h: Declare it.
* decl.c (wrap_cleanups_r): Stop at CLEANUP_POINT_EXPR.
Added:
trunk/gcc/testsuite/g++.dg/init/aggr7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog