🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #726

Badly worded warning in GCC 1.36

#726
From: Ron Guilmette
Date: Wed, 18 Oct 1989 22:46
28 lines
1435 bytes
In GCC 1.36 (on a Symmetry) I get the following warning which
talks about a "data definition" even though the item in question
is actually a function declaration.


Script started on Wed Oct 18 15:40:53 1989
ics>att nl -ba syntax-bug.c
     1	
     2	foo (int bar);
     3	
     4	foo (int bar)
     5	{
     6		return 0;
     7	}
ics>
ics>gcc -v -c syntax-bug.c
gcc version 1.36
 /usr/gnu/lib/gcc-cpp -v -undef -D__GNUC__ -Dunix -Di386 -Dsequent -D__unix__ -D__i386__ -D__sequent__ syntax-bug.c /usr/tmp/cc011787.cpp
GNU CPP version 1.36
 /usr/gnu/lib/gcc-cc1 /usr/tmp/cc011787.cpp -quiet -dumpbase syntax-bug.c -version -o /usr/tmp/cc011787.s
GNU C version 1.36 (80386, BSD syntax) compiled by GNU C version 1.36.
default target switches: -m80387
syntax-bug.c:2: warning: data definition lacks type or storage class
 gas -o syntax-bug.o /usr/tmp/cc011787.s
ics>
script done on Wed Oct 18 15:41:36 1989

// rfg
Technical Details
Message-ID: <1989Oct18.224628.13372@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!usc!orion.oac.uci.edu!uci-ics!ics.uci.edu!rfg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!usc!orion.oac.uci.edu!uci-ics!ics.uci.edu!rfg
From: rfg@ics.uci.edu (Ron Guilmette)
Newsgroups: gnu.gcc.bug
Subject: Badly worded warning in GCC 1.36
Message-ID: <1989Oct18.224628.13372@paris.ics.uci.edu>
Date: 18 Oct 89 22:46:28 GMT
Sender: news@paris.ics.uci.edu (Network News)
Reply-To: rfg@ics.uci.edu (Ron Guilmette)
Organization: University of California, Irvine - Dept of ICS
Lines: 28