------- Comment #9 from sezeroz at gmail dot com 2009-07-31 09:59 ------- Interesting that the problem occurs only with the inlined version: if the test object is linked with a non-inline version in a separate *.a file, the test behaves correctly.. BTW, neither 4.4 nor 4.5 complains even with -Wstrict-aliasing=2.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40909