------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-28 01:09 ------- Can you first read the documention of -Wstrict-aliasing=2? -Wstrict-aliasing=2 This option is only active when -fstrict-aliasing is active. It warns about code which might break the strict aliasing rules that the compiler is using for optimization. This warning catches more cases than -Wstrict-aliasing, but it will also give a warning for some ambiguous cases that are safe.
It says this is one of the known limitations, I am not saying this cannot be detected but since you did not mention this fact I thought you did not read the documention like most people. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26492