https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102518
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |needs-bisection Target Milestone|--- |11.3 Last reconfirmed| |2021-09-28 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, here is reduced C testcase: struct A { int *x; }; int i; int f(int *const c) { struct A * b = (struct A *)(&c); return b->x != 0; } void g() { f(&i); } --------------- CUT -------------- If I change &c into just c, GCC does not crash.