Is this a gcc bug?

Richard Earnshaw rearnsha@arm.com
Sat Jan 13 03:21:00 GMT 2001


> On Jan 12, 2001, Axel Kittenberger <Anshil@gmx.net> wrote:
> 
> > bug.i:8: unpredictable behaviour due to undefined evaluation sequence of
> > 'x'
> 
> It's the behavior that is undefined.  How about:
> 
> undefined behavior: expression may modify `x' multiple times

But it may not modify `x' multiple times, yet it can still be undefined.  
Consider (as I posted before)

	y = x++ + x;

Since Dewar didn't like my has multiple interpretations suggestion how 
about

	expression containing 'x' has undefined value.

R.



More information about the Gcc mailing list