A diagnostic "gotcha"

Herb Kanner kanner at tymix.UUCP
Wed Feb 12 03:49:29 AEST 1986


In article <648 at tymix.UUCP> kanner at 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 at 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 at 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



More information about the Comp.lang.c mailing list