[Bug c++/67550] [5/6 regression] Initialization of local struct array with elements of global array yields zeros instead of initializer values
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 17 16:52:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67550
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Dec 17 16:51:58 2015
New Revision: 231777
URL: https://gcc.gnu.org/viewcvs?rev=231777&root=gcc&view=rev
Log:
PR c++/67550
* init.c (constant_value_1): Don't return a CONSTRUCTOR missing
non-constant elements.
Added:
trunk/gcc/testsuite/g++.dg/init/aggr13.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
More information about the Gcc-bugs
mailing list