https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112409
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- There's a reason that the bug reporting guidelines *and* the banner at the top of the bug creation form ask you to try -fno-strict-aliasing, and it's easy to see that the constants are not removed if you use that option. Like the guidelines and the banner say, if -fno-strict-aliasing makes a difference, your code is probably not correct.