re PR c++/57510 (subobjects not destroyed when exception thrown during list-initializ...
authorJason Merrill <jason@redhat.com>
Fri, 12 Dec 2014 03:48:55 +0000 (22:48 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 12 Dec 2014 03:48:55 +0000 (22:48 -0500)
commit89631a43369a94bcce9a3a3b3063a75972754a5a
tree957668d11d15ae27eea8fc37f49bc6c98e00cb03
parent923e09ee92afd63f0e6aff37ed796952196bb60b
re PR c++/57510 (subobjects not destroyed when exception thrown during list-initialization)

PR c++/57510
* typeck2.c (split_nonconstant_init_1): Handle arrays here.
(store_init_value): Not here.
(split_nonconstant_init): Look through TARGET_EXPR.  No longer static.
* cp-tree.h: Declare split_nonconstant_init.
* call.c (set_up_extended_ref_temp): Use split_nonconstant_init.

From-SVN: r218653
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/cpp0x/initlist90.C [new file with mode: 0644]