Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!test@cit-vax
From: test@cit-vax@sri-unix.UUCP
Newsgroups: net.unix-wizards
Subject: C compiler bug
Message-ID: <3136@sri-arpa.UUCP>
Date: Fri, 15-Jul-83 13:34:39 EDT
Article-I.D.: sri-arpa.3136
Posted: Fri Jul 15 13:34:39 1983
Date-Received: Sun, 17-Jul-83 16:36:26 EDT
Lines: 21

With the 4.1bsd C compiler, the following program

    extern blech(Z);            /* <<<<< illegal (?) */

    main(argc,argv)
    int argc;
    char *argv[];
    {
	printf("[%d]\n",argc);
    }

prints out argc as [2147479384] instead of [1]. (argv  is  also  screwed
up). It seems to me that it shouldn't even get past the compiler because
of the 'Z' in the extern. Removing the 'Z' causes [1] to be  printed  as
expected. Is there a defined meaning of "extern  blech(Z)"?  This  would
seem to be a bug.
				    * Eric Holstege
				    * Caltech, Pasadena, CA.
				    * (eric@cit-vax)
				    * (...!ucbvax!cithep!citcsv!eric)
				    * (...!research!citcsv!eric)