[Bug c++/79655] [5/6/7 Regression] ICE on invalid c++ code in cxx_eval_store_expression in cp/constexpr.c:3464
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 21 17:57:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79655
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb 21 17:57:23 2017
New Revision: 245636
URL: https://gcc.gnu.org/viewcvs?rev=245636&root=gcc&view=rev
Log:
PR c++/79655
* constexpr.c (cxx_eval_array_reference): Diagnose negative subscript.
* g++.dg/cpp1y/constexpr-79655.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-79655.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list