]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/constexpr.c
PR c++/78551
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2016 18:34:04 +0000 (18:34 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2016 18:34:04 +0000 (18:34 +0000)
commit92fe8840e641bfbee9d837a95fae76da21574f98
tree054e757f6e96ac991151bfcadbbfd0a1cd115453
parentcd76903765d7085a0b792fae5140a3c977dc9bee
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243448 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr78551.C [new file with mode: 0644]