]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/constexpr.c
PR c++/79655
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Feb 2017 17:57:23 +0000 (17:57 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Feb 2017 17:57:23 +0000 (17:57 +0000)
commit0acc6340d6f898ab106b9922c362606f9ed6a01c
treeb4f077a5ec20715695c62f39daac6b4d371c27e2
parent6993e7080de856133ad9d235c95b8a0e85a93fd5
PR c++/79655
* constexpr.c (cxx_eval_array_reference): Diagnose negative subscript.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245636 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-79655.C [new file with mode: 0644]