[Bug rtl-optimization/21404] wrong code for array copy in while loop

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu May 5 18:12:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-05 18:12 -------
This is invalid, there is no sequence point between the access of i and the increment of i so either can 
be first.

With -W -Wall we get a warning:
t.c:8: warning: operation on `i' may be undefined


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

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


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



More information about the Gcc-bugs mailing list