Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site tymix.UUCP Path: utzoo!linus!decvax!decwrl!sun!idi!oliveb!tymix!kanner From: kanner@tymix.UUCP (Herb Kanner) Newsgroups: net.lang.c Subject: Re: A diagnostic "gotcha" Message-ID: <659@tymix.UUCP> Date: Tue, 11-Feb-86 12:49:29 EST Article-I.D.: tymix.659 Posted: Tue Feb 11 12:49:29 1986 Date-Received: Thu, 13-Feb-86 17:15:48 EST References: <648@tymix.UUCP> Reply-To: kanner@tymix.UUCP (Herb Kanner) Organization: Tymnet Inc., Cupertino CA Lines: 30 In article <648@tymix.UUCP> kanner@tymix.UUCP (Herb Kanner) writes: >A line of C code that looked like: > > node_mem[*dotp] = val & 0xff; > >produced the diagonistic "operands of + have incompatible types." The >error was that *dotp was not of type int, and a[b] being a euphemism for >*(a + b), it complained about the operands of addition. I received the following note: Subject: Re: A diagnostic "gotcha" Newsgroups: net.lang.c In-Reply-To: <648@tymix.UUCP> Organization: Hadron, Inc., Fairfax, VA Status: RO Wouldst be so good as to tell the Net what version of C, and what machine? They're all different, to some degree, in the issued diagnostics. -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP} Sorry about that. It is the standard C compiler on 4.2BSD running on a VAX 750. -- Herb Kanner McDonnell Douglas (TYMNET) ...!hplabs!oliveb!tymix!kanner