[Bug c++/21246] Compiler fails when using and incrementing a variable i: f(i,++i) equivalent to f(i+1,i+1); ++i

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Wed Apr 27 11:41:00 GMT 2005


------- Additional Comments From giovannibajo at libero dot it  2005-04-27 11:40 -------
This is not a bug, the order of evaluation is unspecified.
Read about this here:
http://gcc.gnu.org/bugs.html
section "Increment/decrement operator (++/--) not working as expected"

*** 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=21246



More information about the Gcc-bugs mailing list