Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!cbatt!danews!lvc From: lvc@danews.ATT.COM (Larry Cipriani) Newsgroups: comp.lang.c Subject: Another question on X3J11 proposal Message-ID: <362@danews.ATT.COM> Date: Sun, 14-Dec-86 13:35:35 EST Article-I.D.: danews.362 Posted: Sun Dec 14 13:35:35 1986 Date-Received: Tue, 16-Dec-86 20:48:43 EST Organization: AT&T Medical Information Systems, Columbus, Oh Lines: 25 Keywords: C,variable scope Does the X3J11 proposal allow reuse of names in the following manner? main(argc, argv) int argc; /* first argc */ char *argc[]; { int argc; /* second argc */ printf("argc = %d\n", argc); } 3 PDP 11/70 compilers I use give the message 'argc redeclared' and abort. A 3B5 and 3B2 compiler I use allow this. I believe that the PDP compilers are correct and the 3b compilers are broken. Is the scope of the 'second argc' (an automatic) the same as that of the 'first argc' (a function paramter)? If the X3J11 proposal allows this I wish to register a formal complaint. Who do I contact? -- Larry Cipriani AT&T Network Systems cbosgd!{danews,cbsck}!lvc