> unsigned long a; > unsigned long *p; > p = (unsigned long *)&p; > a = ++(*p);
Gabriel, since p refers to itself this code looks to me like an occurrence of the second clause of this type of undefined behavior: "Between two sequence points, an object is modified more than once, or is modified and the prior value is read other than to determine the value to be stored." See p. 493 of WG14/N1124. John ------------------------------------------------------------------------------ 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