http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42616
--- Comment #9 from Dmitri Zolotukhin <zlogic at gmail dot com> 2011-01-05 18:30:46 UTC --- @Victor K. Are you using the MinGW or TDM version of GCC? TDM 4.5.0 passes the test cases on my machine. Seems the problem existed only in the 4.4.* branch of gcc.