https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115582
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 Last reconfirmed| |2024-06-21 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The godbolt is at -O3. But these two structures are not compatible at all. In c structs are not compatible just because they have the same fields. So they can't alias. Why do you think they can alias?