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++/78572] [6/7 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:4968


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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Feb 16 16:42:06 2017
New Revision: 245511

URL: https://gcc.gnu.org/viewcvs?rev=245511&root=gcc&view=rev
Log:
        PR c++/78572 - ICE with self-modifying array initializer

        * constexpr.c (cxx_eval_store_expression): The object we're
        initializing is outside the constant-expression.

Added:
    trunk/gcc/testsuite/g++.dg/init/array47.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c

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