http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56180
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-02 10:49:26 UTC --- You should try your program e.g. under valgrind, or bother reading manual pages. One obvious bug is e.g. that you really can't call ungetc more than once without an intervening read from the stream.