PR c++/78572 - ICE with self-modifying array initializer
authorJason Merrill <jason@redhat.com>
Thu, 16 Feb 2017 16:42:06 +0000 (11:42 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 16 Feb 2017 16:42:06 +0000 (11:42 -0500)
commit1e163090d5d15d9c26fd89cfee5443418e2e968f
treef6e1e0d3c41a04ecfbd7c9d4942a3a6ad34a523a
parent61cee2603036c29761a49c07a6531561ca507ddc
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.

From-SVN: r245511
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/init/array47.C [new file with mode: 0644]