Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!uw-june!pardo From: pardo@uw-june.UUCP (David Keppel) Newsgroups: comp.lang.c Subject: pointer arithmatic error messages Message-ID: <3899@uw-june.UUCP> Date: 30 Dec 87 00:35:43 GMT Organization: U of Washington, CSCI, Seattle Lines: 32 Keywords: pointer aritmatic pcc I have the following: /* ---- */ typedef int foo; { foo *a, *b, *c; a = b + c; b += c if ((c += a) != b) { a = b; } } /* ---- */ Pcc complains about *every* operator excpet the last "=" (yes, even "!="). I would like to know: why? how can I make it work? (yes, I really want to do "b+=c") how can I make it work without doing "((int) b) += (int) c"? is this a feature? (lint doesn't tell me anything more useful) If this has been around the net before, please reply directly to me. ;-D on (How about *structure* arithmatic ?-) Pardo ucbvax!uw-beaver!uw-june!pardo pardo@cs.washington.edu