This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients adam@NetBSD.org, loewis, mark.dickinson, skrah, vstinner
Date 2011-09-14.19:34:12
SpamBayes Score 0.008536181
Marked as misclassified No
Message-id <1316028853.12.0.610493401695.issue12973@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-09-14 19:34:13vstinnersetrecipients: + vstinner, loewis, mark.dickinson, skrah, adam@NetBSD.org
2011-09-14 19:34:13vstinnersetmessageid: <1316028853.12.0.610493401695.issue12973@psf.upfronthosting.co.za>
2011-09-14 19:34:12vstinnerlinkissue12973 messages
2011-09-14 19:34:12vstinnercreate