[Bug c/105555] ICE: in fold_offsetof, at c-family/c-common.cc:6815

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 1 04:57:29 GMT 2025


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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Another valid testcase:
```
struct C {
  __complex int i;
};
struct C p[10];
int *foo1(void) {
  return &__real(p->i);
}
```

Reduced from PR 122927.


More information about the Gcc-bugs mailing list