https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121505
Bug ID: 121505
Summary: internal compiler error: tree check: expected
array_type, have error_mark in array_ref_low_bound, at
tree.cc:13083
Product: gcc
Version: 15.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: xieym3 at zohomail dot com
Target Milestone: ---
$ cat file.c
#include <stdlib.h>
int p[3] = {1, 3, 5};
int q = 6 + *p++;
int *r = &p[1] - 1;
char s[2];
s = (char *)r;
int a[5];
int b[10] = {0};
int c;
int *p;
p = b + 3;
*p = 50;
p[2] = 2 * 3;
double d[5] = {438.1, 42.457, 62, 52.56, -24.432};
double e[10] = {0.0};
float f[5];
Godbolt URL: https://godbolt.org/z/3YW8PTT46