This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78572] [6/7 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:4968
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Feb 2017 16:42:38 +0000
- Subject: [Bug c++/78572] [6/7 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:4968
- Auto-submitted: auto-generated
- References: <bug-78572-4@http.gcc.gnu.org/bugzilla/>
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