https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122572
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |c
Keywords| |alias
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This seems like a front-end issue dealing with struct tagging changes in C23.
In fact using `-std=c99` works.
It is like the two structs are being merged (because of C23 tagging rules) but
the aliasing sets are not. And then the middle-end sometimes uses the different
aliasing set and messes up.