https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116672
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xry111 at gcc dot gnu.org
--- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
> It seems that lower versions would check if the code is comply to the
> strict-aliasing rule, while the higher versions will not.
On the contrary, it means the lower versions would **not** check if this access
is comply to the strict-aliasing rule and optimize away it because it shouldn't
happen in a correct program, but the higher version **is** doing that.