]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/78551 (Internal compiler error with constexpr initialization of union)
authorNathan Sidwell <nathan@acm.org>
Thu, 8 Dec 2016 19:27:32 +0000 (19:27 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 8 Dec 2016 19:27:32 +0000 (19:27 +0000)
commit7b2873465cf6a8bf304c87603ac39fd4e48a6931
tree6f3ee0aa0e60cdc01a3ab8da3f4ef4e05cd441d7
parent11f9388afadad66ba216f5b1219af607779abe1f
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: r243457
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr78551.C [new file with mode: 0644]