https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93033
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Jan 3 22:10:56 2020 New Revision: 279871 URL: https://gcc.gnu.org/viewcvs?rev=279871&root=gcc&view=rev Log: PR c++/93033 - incorrect tree node sharing with array init. The split_nonconstant_init piece is the only one necessary to fix the testcase, but it occurred to me that we might as well not split when -fno-exceptions. * typeck2.c (split_nonconstant_init): Unshare non-decl. * cp-gimplify.c (cp_gimplify_init_expr): Only split if -fexceptions. Added: trunk/gcc/testsuite/g++.dg/cpp0x/initlist-array9.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-gimplify.c trunk/gcc/cp/typeck2.c