[Bug c/59264] Incorrect order of execution on increament/decrement operator

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Nov 23 17:54:00 GMT 2013


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> but it gets executed correctly for 1st condition why not for 2nd and 3rd

Both executions are correct since the code has undefined behavior.



More information about the Gcc-bugs mailing list