[Bug c++/78551] [5/6/7 Regression] Internal compiler error with constexpr initialization of union
nathan at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 8 18:37:00 GMT 2016
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
More information about the Gcc-bugs
mailing list