[Bug c/61317] ones complement fails when using increment(++) into an array

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 26 08:57:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61317

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>        ints[j++]=~ints[j-1] & 0xFF;

It is unspecified (in both C and C++ standards) if j++ can happen either before
or after the expression j-1 has been evaluated.



More information about the Gcc-bugs mailing list