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++/41449] Partial aggregate initialization not cleaned up on exception


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


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