http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51667
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-24 10:17:00 UTC --- Note that the library code for this is very old and didn't change lately. I'll have a look but a compiler issue seems much more likely.