[net.unix-wizards] bug in C

bytebug@berkeley@csuf.UUCP (07/17/83)

The bug report to Unix-Wizards where argv and argc are screwed up by
the `extern blech(Z);' statement seems to only affect `pcc'
implementations.  I just tried the program here (a 11/45 running V7),
and `cc' correctly complained about the extern statement (Inappropriate
parameters), but `pcc' compiled it with no errors, and resulted in
`[-178]' being printed.

The error also appears on my 68000 System III implementation, so my
guess is that the 68000 and VAX C compilers were likely derived from
`pcc'.

	-roger

crc@clyde.UUCP (07/20/83)

Re:extern blea(V);/* or what ever it was */

The Vax C compilier on UNIX 5.0 is PCC.  The compilier refused to accept the
funny program. So this bug is not on all PCC's.