re PR c++/69496 ([C++ 14] ICE on VLA in constexpr function)
authorMarek Polacek <polacek@redhat.com>
Wed, 27 Jan 2016 14:26:38 +0000 (14:26 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 27 Jan 2016 14:26:38 +0000 (14:26 +0000)
commit95e3030cfa307191f87da77bb98b101f2ed88bec
treebfe137203da0ccf55cba3f65e7c46f06a5d8bb62
parent5128d392c0c6509fac352b62cbb3cecf511e7b2a
re PR c++/69496 ([C++ 14] ICE on VLA in constexpr function)

PR c++/69496
* constexpr.c (cxx_eval_array_reference): Evaluate the number of
elements of the array.

* g++.dg/ext/constexpr-vla1.C: New test.

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