This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78551] [5/6/7 Regression] Internal compiler error with constexpr initialization of union
- From: "nathan at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Dec 2016 18:37:35 +0000
- Subject: [Bug c++/78551] [5/6/7 Regression] Internal compiler error with constexpr initialization of union
- Auto-submitted: auto-generated
- References: <bug-78551-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551
--- Comment #13 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Dec 8 18:37:03 2016
New Revision: 243451
URL: https://gcc.gnu.org/viewcvs?rev=243451&root=gcc&view=rev
Log:
PR c++/78551
* constexpr.c (extract_string_elt): New. Broken out of ...
(cxx_eval_array_reference): ... here. Call it.
(cxx_eval_store_expression): Convert init by STRING_CST into
CONSTRUCTOR, if needed.
PR c++/78551
* g++.dg/cpp1y/pr78551.C: New.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/pr78551.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/constexpr.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog