[Bug c++/25152] -fstrict-aliasing generates wrong code, but no warning from -Wstrict-aliasing
frederic dot devernay at m4x dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 29 13:30:00 GMT 2005
------- Comment #1 from frederic dot devernay at m4x dot org 2005-11-29 13:30 -------
Created an attachment (id=10361)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10361&action=view)
test case
this source generates wrong code without issueing a warning, using:
g++ -DMAIN -O -Wstrict-aliasing -fstrict-aliasing cxcopy-preproc.cpp -o
testcase
it generates the right code with:
g++ -DMAIN -O cxcopy-preproc.cpp -o testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25152
More information about the Gcc-bugs
mailing list