[Bug sanitizer/79993] [5/6/7 Regression] ICE in tree_to_uhwi, at tree.c:7344
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 3 21:16:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79993
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Apr 3 21:15:36 2017
New Revision: 246662
URL: https://gcc.gnu.org/viewcvs?rev=246662&root=gcc&view=rev
Log:
PR sanitizer/79993 - ICE with VLA initialization from string
PR c++/69487 - wrong VLA initialization from string
* init.c (finish_length_check): Split out from build_vec_init.
(build_vec_init): Handle STRING_CST.
* typeck2.c (split_nonconstant_init): Handle STRING_CST.
(digest_init_r): Don't give a STRING_CST VLA type.
Added:
trunk/gcc/testsuite/g++.dg/asan/pr78201.C
trunk/gcc/testsuite/g++.dg/ext/vla17.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/cp/typeck2.c
More information about the Gcc-bugs
mailing list