[Bug c++/57510] initializer_list memory leak
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 12 03:49:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57510
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Dec 12 03:48:55 2014
New Revision: 218653
URL: https://gcc.gnu.org/viewcvs?rev=218653&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist90.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/typeck2.c
More information about the Gcc-bugs
mailing list