🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2653

gcc 1.35

#2653
From: Paul English
Date: Fri, 19 May 1989 01:54
18 lines
751 bytes
/* 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 );
}
Technical Details
Message-ID: <8905190154.AA05881@mote.umb.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!mote.umb.edu!pme

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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