re PR c++/79655 (ICE on invalid c++ code in cxx_eval_store_expression in cp/constexpr...
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Feb 2017 17:57:23 +0000 (18:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Feb 2017 17:57:23 +0000 (18:57 +0100)
commit3bb4311904171b4938f6682566a24180f318b196
treeb4f077a5ec20715695c62f39daac6b4d371c27e2
parent664beaf2c19148677cc26c0fd6beaf2e56d2b6f3
re PR c++/79655 (ICE on invalid c++ code in cxx_eval_store_expression in cp/constexpr.c:3464)

PR c++/79655
* constexpr.c (cxx_eval_array_reference): Diagnose negative subscript.

* g++.dg/cpp1y/constexpr-79655.C: New test.

From-SVN: r245636
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-79655.C [new file with mode: 0644]