------- Comment #3 from frederic dot devernay at m4x dot org 2005-11-29 17:42 ------- I know it breaks aliasing rules, but this problem was not present in gcc-3.3.
Most gcc users consider "-O2" as being a safe optimizing option, (e.g. redhat RPMs are compiled with gcc -O2), and generating wrong code from proper ISO C++ source without even a warning looks like a regression to me. FYI, this bug came out when compiling OpenCV (maintained and distributed by Intel) on Fedora Core 4. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25152