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

--- Comment #89 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