http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56016
--- Comment #4 from JxP <bugs at justexpired dot e4ward.com> 2013-01-17 17:51:53 UTC --- Comment on attachment 29196 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29196 sample program using iostream only This last one doesn't even include cstdio or unistd.h. Still, ios_base::sync_with_stdio makes the difference between working correctly or not.