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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Aug  1 15:01:03 2016
New Revision: 238957

URL: https://gcc.gnu.org/viewcvs?rev=238957&root=gcc&view=rev
Log:
        PR c++/72766 - ICE with VLA

        * constexpr.c (cxx_eval_pointer_plus_expression): Check constancy
        of nelts.
        * cp-gimplify.c (cp_fully_fold): Only maybe_constant_value in
        C++11 and up.

Added:
    trunk/gcc/testsuite/g++.dg/ext/vla16.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/cp/cp-gimplify.c

Reply via email to