PR c++/85618 - ICE with initialized VLA.
commit0b8d327ec38c965e52e6b2b27ea7ee9e1e20b0fd
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 May 2018 19:22:35 +0000 (7 19:22 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 May 2018 19:22:35 +0000 (7 19:22 +0000)
treeb86bd7a4e4f6fc75b74e2f16bc515803da0700b0
parentfb61e5c0754d080166254ce4319488f487afa687
PR c++/85618 - ICE with initialized VLA.

* tree.c (vla_type_p): New.
* typeck2.c (store_init_value, split_nonconstant_init_1): Check it
rather than array_of_runtime_bound_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260012 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/tree.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/ext/vla20.C [new file with mode: 0644]