Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site galbp.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!galbp!wolf From: wolf@galbp.UUCP (Wolf Herda) Newsgroups: net.unix,net.bugs.4bsd Subject: Compiler bug Message-ID: <121@galbp.UUCP> Date: Wed, 1-May-85 13:23:58 EDT Article-I.D.: galbp.121 Posted: Wed May 1 13:23:58 1985 Date-Received: Thu, 2-May-85 03:20:26 EDT Distribution: net Organization: Lanier Business Products, Inc., Atlanta, Georgia Lines: 27 Xref: watmath net.unix:4399 net.bugs.4bsd:1483 *** REPLACE THIS LINE WITH YOUR MESSAGE *** I noticed this idiosyncrasy with regards to our C compiler. Given the following > int a; > int a; > > main() > { > for (;;) > ; > } When compiling this, the compiler generates no error messages. Seems to me, it should give a "redeclaration of a" error message. It does give the error message, if the two int's are made automatic variables (i.e., declared within main()). Does anyone know why? If it matters, this was done on a VAX 11/750 running 4.2BSD. -- Wolf Herda Lanier Business Products, Inc. {gatech,akgua}!galbp!wolf (404) 329-8254