[Bug libstdc++/36742] [4.2 Regression] g++ -O2 produces wrong code

bkoz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jul 11 20:56:00 GMT 2008



------- Comment #5 from bkoz at gcc dot gnu dot org  2008-07-11 20:56 -------
Isn't this the kind of thing that -Wstrict-aliasing or -Wstrict-aliasing=n
should warn about?

I will start to experiment with this, in the thought that we should not
actually have stuff in the library with aliasing problems.

Not expecting to fix this on the 4.2.x branch though, but if we find issues
that can be fixed on trunk/4.3.x, may consider doing so. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36742



More information about the Gcc-bugs mailing list