https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122637
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
char a[10][3];
int b;
void e(short c) {
for (; c; c--) {
for (int d = 2; d; d--)
b = a[d][0] & a[c][d];
}
}
```
