This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72766] [7 Regression] tree check fail in get_len, at tree.h:5303
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Aug 2016 15:01:35 +0000
- Subject: [Bug c++/72766] [7 Regression] tree check fail in get_len, at tree.h:5303
- Auto-submitted: auto-generated
- References: <bug-72766-4@http.gcc.gnu.org/bugzilla/>
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