ambiguous why?

Eddie Wyatt edw at IUS1.CS.CMU.EDU
Tue Apr 5 07:03:27 AEST 1988


When I was playing around with that last example I posted, I got an
error message that said something to the extent:

	warning ambiguous assigment: assignment op taken
	syntax error at or near symbol *=

A simplified version of the statement is:

	int *a, *b;

	*a+=*b;

I thought that this should not be ambiguous since the lexer scans left to right.
Is there some l to r rule that disambiguates this statement or did I
just make it up?
-- 

Eddie Wyatt 				e-mail: edw at ius1.cs.cmu.edu



More information about the Comp.lang.c mailing list