This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/72766] [7 Regression] tree check fail in get_len, at tree.h:5303


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]