public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/59264] New: Incorrect order of execution on increament/decrement operator
@ 2013-11-23 16:59 smaheshs41 at gmail dot com
  2013-11-23 17:05 ` [Bug c/59264] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: smaheshs41 at gmail dot com @ 2013-11-23 16:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59264
           Summary: Incorrect order of execution on increament/decrement
                    operator
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: smaheshs41 at gmail dot com

Created attachment 31281
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31281&action=edit
The Order of execution of the code is not working properly in the 2nd & 3rd
condition the expected output is 13 but 11 but it works correctly in 1st
condition and the result is 13

As in the program stated it works fine when we have two increament/deacrement
operator and one arithmetic operator(+). But, when we try the same thing with
three increament/deacrement operator and two arithmetic operator(+) out off
three conditions only for one condition the code gets executed correctly for
the remaining two conditions it gives incorrect output.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-24  9:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-23 16:59 [Bug c/59264] New: Incorrect order of execution on increament/decrement operator smaheshs41 at gmail dot com
2013-11-23 17:05 ` [Bug c/59264] " redi at gcc dot gnu.org
2013-11-23 17:06 ` redi at gcc dot gnu.org
2013-11-23 17:54 ` ebotcazou at gcc dot gnu.org
2013-11-24  8:52 ` smaheshs41 at gmail dot com
2013-11-24  9:14 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).