https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85618

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
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

Reply via email to