http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51885
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-17 18:38:35 UTC --- What happens if you add to the command line -fno-strict-aliasing? If things 'improve' it means that with your reinterpret_cast & co you have aliasing violations, thus undefined behavior, thus, literally, anything can happen, and this is not a bug (and we have hundreds of closed duplicate PRs in Bugzilla)