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

            Bug ID: 63818
           Summary: unexpected/incorrect behavior
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: blaine at blainebell dot org

Created attachment 33935
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33935&action=edit
a simple program that shows a problem with the ++ operation

compile and run the program:

gcc test.c && ./a.out 

outer a=3 b=3 c=3


then uncomment the second testouter() call, compile and rerun and get:

outer a=3 b=2 c=1
incr 4
outer a=6 b=5 c=4

notice the first line has not changed but has different behavior/outcomes
between the two runs.

Reply via email to