re PR c++/78551 (Internal compiler error with constexpr initialization of union)
authorNathan Sidwell <nathan@acm.org>
Thu, 8 Dec 2016 18:34:04 +0000 (18:34 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 8 Dec 2016 18:34:04 +0000 (18:34 +0000)
commitd6b46fca8d1b3d1621dafc7ceaaa0d3d148a4f5d
tree054e757f6e96ac991151bfcadbbfd0a1cd115453
parentf44986d7f5ca9bf64bf127c3ad0bbfc3e1a455b5
re PR c++/78551 (Internal compiler error with constexpr initialization of union)

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.

From-SVN: r243448
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr78551.C [new file with mode: 0644]