Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!mote.umb.edu!pme From: pme@mote.umb.edu (Paul English) Newsgroups: gnu.gcc.bug Subject: gcc 1.35 Message-ID: <8905190154.AA05881@mote.umb.edu> Date: 19 May 89 01:54:00 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 18 /* str_init.c, pme, 15may89 * demo gcc bug with string initializers of `off by one' length. * * Here is what happens: * * % gcc -version * gcc version 1.35 * % gcc -W str_init.c * % a.out * four is four@(#)Mswitch.s 1.2 86/10/07 Copyr 1985 Sun Micro */ char four[4] = "four"; /* should (but doesn't) produce a warning */ main() { printf( "four is %s\n", four ); }