https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97493
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |jakub at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The testcase is invalid. In standard C only one union member may be active at a time, and while GCC as extension allows type puning through unions, the union must be visible in the expressions accessing it, so taking addresses of the union elts and dereferencing them through those pointers where the union is not visible is UB.