[Bug c/26730] Pointer assignment used together with ++ leads to an update of the wrong structure

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 17 16:59:00 GMT 2006



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-17 16:59 -------
        pos=&pos->sub[pos->no++];


This is undefined. You assign pos and use it without a sequence point.

*** This bug has been marked as a duplicate of 11751 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26730



More information about the Gcc-bugs mailing list