https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109780

--- Comment #29 from Sam James <sjames at gcc dot gnu.org> ---
```
char a;
static int b, c, f;
char *d = &a;
static char *e = &a;
void g(int h, int i) {
  int j = 1;
  for (; c != -3; c = c - 1) {
    int k[10];
    f = 0;
    for (; f < 10; f++)
      k[f] = 0;
    *d = k[1];
    if (i < *d) {
      *e = h;
      for (; j < 9; j++) {
        b = 1;
        for (; b < 7; b++)
          ;
      }
    }
  }
}
int main() { g(1, 1); }
```

```
$ gcc-14 p.c -o p -O2 -march=znver1 -fno-stack-protector
-fno-stack-clash-protection && ./p
Segmentation fault (core dumped)
```

Reply via email to