[Bug c++/49679] Increment/decrement operator (++/--) not working as expected
jordan_2000 at hotmail dot de
gcc-bugzilla@gcc.gnu.org
Fri Jul 8 18:33:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49679
--- Comment #3 from Jordan <jordan_2000 at hotmail dot de> 2011-07-08 18:32:55 UTC ---
I know the warnings, but look the code
....
a+=++a+a++;
b+=++b+b++;
cout << "a=" << a << endl << "b=" << b << endl;
cin >> a;
....
a and b must be the same.
if i remove
cin >> a;
everything is ok.
More information about the Gcc-bugs
mailing list