This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r260012 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 07 May 2018 19:22:35 -0000
- Subject: r260012 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
Author: jason
Date: Mon May 7 19:22:35 2018
New Revision: 260012
URL: https://gcc.gnu.org/viewcvs?rev=260012&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/ext/vla20.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/tree.c
trunk/gcc/cp/typeck2.c