C'mon, guys!

guy at sun.UUCP guy at sun.UUCP
Tue May 27 08:24:07 AEST 1986


> I'm interested in knowing why your sys5 passed it without an illegal
> pointer combo message, though.

I don't know what "it" refers to here, but if "it" is an assignment of a
pointer to an array of X to a pointer to a pointer to X, or something like
that, the reason why the PCC in question (and most other PCCs) passed it is
that PCC has a bug in it.  The type checking code in "chkpun" is completely
wrong.  It treats pointers and arrays as equivalent everywhere.  See
net.bugs.v7/net.bugs.2bsd/net.bugs.4bsd and net.bugs.usg for fixes.
-- 
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy at sun.arpa



More information about the Comp.unix mailing list