On Fri, 2009-08-28 at 10:29 +0200, Benjamin Monate wrote:
> AFAIU if p==&a then
> a=++(*p) ;
> is the same as
> a=++a;
> which is undefined as it has two effects on "a" between two sequence points.

The example had p==&p, not p==&a. a=++(*p) doesn't have two effects on
'a'---it has one on 'a' and one on 'p'.

> See the answer of John Regher to have the normative reference.

His email stated that the problem was that 'p' 'is modified and the
prior value is read other than to determine the value to be stored,' one
criterion for undefined behavior.

-Elnatan


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to