This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is this a gcc bug?


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]