John - On Thu, Aug 27, 2009 at 04:59:45PM -0600, John Regehr wrote: > > 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."
For folks like me, you should have added that the sequence points in the code snippet above are at the semi-colons. :-) Once again I tripped over the *wrong* conception that the assignment operator implies a sequence point. THX, Chris ------------------------------------------------------------------------------ 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