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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon May  7 19:34:59 2018
New Revision: 260013

URL: https://gcc.gnu.org/viewcvs?rev=260013&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:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/ext/vla20.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/cp-tree.h
    branches/gcc-8-branch/gcc/cp/tree.c
    branches/gcc-8-branch/gcc/cp/typeck2.c

Reply via email to