PR sanitizer/79993 - ICE with VLA initialization from string
authorJason Merrill <jason@redhat.com>
Mon, 3 Apr 2017 21:15:36 +0000 (17:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 3 Apr 2017 21:15:36 +0000 (17:15 -0400)
commit5a68fae797b88216b40eb6af8c75dec6e98b983c
tree28f3a1d200fa86ca4057f09c132ba79749c015a7
parentb0dfb235e837330a5f91ff14092aa76684fee24d
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.

From-SVN: r246662
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/asan/pr78201.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/vla17.C [new file with mode: 0644]