++*(int **)&a1;
                ++*(int **)&a2;

you are accessing a void* as an int* which violates C/C++ aliasing rules so you
are invoking undefined behavior.


** Changed in: gcc-4.1 (Ubuntu)
       Status: New => Invalid

-- 
gcc -O2 generates wrong code
https://bugs.launchpad.net/bugs/158799
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to