Path: utzoo!mnetor!uunet!husc6!bbn!bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: comp.lang.c Subject: Re: ambiguous why? Message-ID: <589@fig.bbn.com> Date: 5 Apr 88 20:28:55 GMT References: <1303@PT.CS.CMU.EDU> <3326@haddock.ISC.COM> Organization: BBN Laboratories, Cambridge MA Lines: 15 Eddie Wyatt asks why this *a+=*b; gives this message: warning ambiguous assigment: assignment op taken The Walking Lint replies: Your compiler scans "+=" as two tokens rather than one. Yeah, that's obviously what it's doing, but it's wrong. The Rules say to take the longest possible token you can, so "*a+=*b" should be parsed as * a += * b Sounds like Eddie's found a compiler bug. /r$ -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.