STINNER Victor <victor.stin...@haypocalc.com> added the comment: Aaaah, int_pow. I was testing Python 3.3.
I tested Python 2.7 with clang 2.8, optimization level at -03 and without -fwrapv... I'm still unable to reproduce the issue. It's maybe an optimization introduced by clang 2.9. -- This issue remembers me the great "What Every C Programmer Should Know About Undefined Behavior" article serie (3 parts). http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_14.html http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_21.html See also this tool to detect such bug: http://blog.regehr.org/archives/508 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12973> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com