[Bug c/26060] A ^= B ^= A ^=B doesn't work if compiled with -g

2006-02-01 Thread vitaly at siliconds dot com
--- Comment #3 from vitaly at siliconds dot com 2006-02-01 11:08 --- Thank you very much. -- vitaly at siliconds dot com changed: What|Removed |Added Status

[Bug c/26060] New: A ^= B ^= A ^=B doesn't work if compiled with -g

2006-02-01 Thread vitaly at siliconds dot com
Following program works differently - if compiled with flag -g or without: -- #include using namespace std; int main(){ unsigned char a[10]; a[0] = 'A'; a[2] = 'B'; a[0] ^= a[2] ^= a[0] ^= a[2]; cout <<"a0="