https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- I agree with Andrew and Sam that this is just undefined and **not** allowed by GCC. The only GCC-specific exception about aliasing rule is type punning via a union.