[Bug c++/71459] ICE writing to a string-initialized local array in a constexpr function
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 15 23:51:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71459
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
The ICE was removed in r243448 (gcc 7.0.0):
r243448 | nathan | 2016-12-08 13:34:04 -0500 (Thu, 08 Dec 2016) | 9 lines
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.
More information about the Gcc-bugs
mailing list