Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!sundc!hadron!jsdy
From: jsdy@hadron.UUCP (Joseph S. D. Yao)
Newsgroups: comp.lang.c
Subject: Re: Why are typedef names in the same name space as variable names?
Message-ID: <298@hadron.UUCP>
Date: Sun, 14-Dec-86 23:49:42 EST
Article-I.D.: hadron.298
Posted: Sun Dec 14 23:49:42 1986
Date-Received: Tue, 16-Dec-86 19:30:14 EST
References: <1092@spice.cs.cmu.edu> <307@cartan.Berkeley.EDU> <3644@utcsri.UUCP> <4647@ism780c.UUCP>
Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao)
Distribution: net
Organization: Hadron, Inc., Fairfax, VA
Lines: 15
Summary: Both illegal

In article <4647@ism780c.UUCP> tim@ism780c.UUCP (Tim Smith) writes:
>	main() { a; a = 1; }
>Every C compiler I have tried complains about an undeclared variable on
>line 2.  If "a" is a global, they have no problem:
>	a; main() { a = 1; }

This is an illegal declaration, anyway.  Declarations must contain
at least one "storage class" specifier or one "type" specifier.  A
compiler that accepts the above is exhibiting a bug, not a feature.

*** Stamp out programs that put arbitrary decrees on text shape ***
-- 

	Joe Yao		hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}
			jsdy@hadron.COM (not yet domainised)