clang 3.3 also exhibit this issue but it is fixed in the current upstream release...
I don't see any backport of this bug fix (especially in clang 3.0) I recommend you to use the upstream snapshot: http://llvm.org/apt/ ** Changed in: clang (Ubuntu) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1251169 Title: during compilation with -O2 a function call is moved to the wrong place To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1251169/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs