------- Comment #3 from paolo dot carlini at oracle dot com 2009-04-07 14:17 ------- Yes, you are right. Apparently some sort of miscompilation. The problem does not happen when using the C++ runtime + a different C++ compiler, by the way. Let's look further into it... The other possibility is that you are triggering somehow an undefined behavior...
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39678