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?


Michael Eager <eager@mvista.com> writes:

> My sugguestion:  
> 
> 	undefined behavior:  value of expression using 'x' is undefined 

This would seem to imply that the behaviour is undefined because one
uses an undefined value. But that's not the case: the standard says
program behaviour is undefined even if you say x = ++x and never look
at x again. (At least IIRC.)

BTW, I would really like to mention the warning "sequence point" so
people have something to look up.

	Falk


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