This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61317] ones complement fails when using increment(++) into an array
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 26 May 2014 08:57:54 +0000
- Subject: [Bug c/61317] ones complement fails when using increment(++) into an array
- Auto-submitted: auto-generated
- References: <bug-61317-4 at http dot gcc dot gnu dot org/bugzilla/>
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.