http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With -W -Wall you get some warnings which expose what is going wrong: t.c: In function ‘main’: t.c:46: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’ t.c:49: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’ Using %d instead works.