C compiler bug
test at cit-vax
test at cit-vax
Sat Jul 16 03:34:39 AEST 1983
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 at cit-vax)
* (...!ucbvax!cithep!citcsv!eric)
* (...!research!citcsv!eric)
More information about the Comp.unix.wizards
mailing list