PR c++/78572 - ICE with self-modifying array initializer
commit43b7271d09820a940f627e07d59a6cb9fbb741cd
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Feb 2017 16:42:06 +0000 (16 16:42 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Feb 2017 16:42:06 +0000 (16 16:42 +0000)
treef6e1e0d3c41a04ecfbd7c9d4942a3a6ad34a523a
parent08d009acef950ab4e52e58525ad873ef5fc00fce
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245511 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/init/array47.C [new file with mode: 0644]