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++/67550] [5/6 regression] Initialization of local struct array with elements of global array yields zeros instead of initializer values


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67550

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Dec 17 16:52:10 2015
New Revision: 231779

URL: https://gcc.gnu.org/viewcvs?rev=231779&root=gcc&view=rev
Log:
        PR c++/67550

        * init.c (constant_value_1): Don't return a CONSTRUCTOR missing
        non-constant elements.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/init/aggr13.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/init.c

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