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

Oleg <oraytman1 at comcast dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oraytman1 at comcast dot net

--- Comment #88 from Oleg <oraytman1 at comcast dot net> ---
Is this produces correct output?

#include <cstring>
#include <cstdio>

int main()
{
  int i = 100;
  i = i++ + ++i;
  printf("i=%d\n", i);

  i = 100;
  i = ++i + i++;
  printf("i=%d\n", i);

  i = 100;
  i = i + i++;
  printf("i=%d\n", i);
  return 0;
}

output:

i=202
i=203

Reply via email to