This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/59264] Incorrect order of execution on increament/decrement operator
- From: "smaheshs41 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Nov 2013 08:52:05 +0000
- Subject: [Bug c/59264] Incorrect order of execution on increament/decrement operator
- Auto-submitted: auto-generated
- References: <bug-59264-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59264
--- Comment #5 from Mahesh S <smaheshs41 at gmail dot com> ---
[Bug c/59264] Incorrect order of execution on increament/decrement operator
But it works correctly in Turbo C and Borland C compiler why not in gcc
On Sat, Nov 23, 2013 at 11:23 PM, ebotcazou at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:
> 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.
>
> --
> You are receiving this mail because:
> You reported the bug.
>