Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!sun!guy From: guy@sun.UUCP Newsgroups: net.lang.c,net.micro.pc,net.unix Subject: Re: C'mon, guys! Message-ID: <3763@sun.uucp> Date: Mon, 26-May-86 18:24:07 EDT Article-I.D.: sun.3763 Posted: Mon May 26 18:24:07 1986 Date-Received: Wed, 28-May-86 04:22:48 EDT References: <200@pyuxv.UUCP> <1181@ncoast.UUCP> <350@dg_rtp.UUCP> <3423@ukma.UUCP> <357@dg_rtp.UUCP> <1194@ncoast.UUCP> Organization: Sun Microsystems, Inc. Lines: 13 Xref: watmath net.lang.c:9173 net.micro.pc:8427 net.unix:7981 > 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@sun.arpa