Article View: comp.std.c
Article #834Tentative definitions of incomplete arrays
From: Dale R. Worley
Date: Tue, 24 Oct 1989 03:02
Date: Tue, 24 Oct 1989 03:02
18 lines
1048 bytes
1048 bytes
Consider the program: int i[]; As far as I can figure out, it is a legal tentative declaration, and has external linkage. (The external linkage is what saves it from line 35, section 3.7.2, 7 Dec 88 Draft ANSI Std.) By 3.7.2, at the end of the program, the compiler effectively processes: int i[] = 0; However, this seems to be illegal, according to line 17 on page 73, section 3.5.7. What gives? I suspect the first declaration above is illegal, but I can't find a rule that forbids it. Please e-mail replies, since I don't read this group. Dale Worley worley@compass.com
Technical Details
Message-ID:
<DRW.89Oct23230234@euler.math.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!ginosko!usc!snorkelwacker!bloom-beacon!math.mit.edu!drwShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!ginosko!usc!snorkelwacker!bloom-beacon!math.mit.edu!drw From: drw@euler.math.mit.edu (Dale R. Worley) Newsgroups: comp.std.c Subject: Tentative definitions of incomplete arrays Message-ID: <DRW.89Oct23230234@euler.math.mit.edu> Date: 24 Oct 89 03:02:34 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: MIT Dept. of Mathematics, Cambridge, MA, USA Lines: 18