https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64430
Bug ID: 64430
Summary: Out-of-bounds array access in isl-ast-gen-if-1.c
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: dinuxbg at gmail dot com
In gcc.dg/graphite/isl-ast-gen-if-1.c:13 the following line has out-of-bounds
array access:
a[n - i] = 1; //out-of-bounds when n=50 and i=0
Example fix:
--- a/gcc/testsuite/gcc.dg/graphite/isl-ast-gen-if-1.c
+++ b/gcc/testsuite/gcc.dg/graphite/isl-ast-gen-if-1.c
@@ -29,7 +29,7 @@ int
main (void)
{
int a[50];
- foo (a, 50);
+ foo (a, 49);