PR c++/72766 - ICE with VLA
authorJason Merrill <jason@redhat.com>
Mon, 1 Aug 2016 15:01:03 +0000 (11:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 1 Aug 2016 15:01:03 +0000 (11:01 -0400)
commit1108a48582edec95d824d8eac8093be469aaf7b2
tree10049b6204e11dba9e275b41e80f6900bdb77bf9
parent37bce35a7e01dd844ccc810c58bf89ef7474c895
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.

From-SVN: r238957
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-gimplify.c
gcc/testsuite/g++.dg/ext/vla16.C [new file with mode: 0644]