------- Comment #3 from strikosn at gmail dot com 2010-08-19 09:50 ------- Ok, I reviewed all cases and it seems that gcc always does the right thing. The only problem left is that strict-aliasing warning Levels 2 and 3, of which Level 3 is enabled by default, do not detect this particular case of strict-aliasing, even though Level 1 detects it correctly.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45320