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 ronaldoussoren
Recipients mark.dickinson, ned.deily, ronaldoussoren, wayedt
Date 2014-07-21.09:13:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405933997.86.0.980351507648.issue22012@psf.upfronthosting.co.za>
In-reply-to
Content
The last draf of ISO C '11: <http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf>.

This says that _Bool is large enough to store 0 and 1, and that conversion of any integer data to _Bool results in 0 or 1.  If I interpret the document correctly there is no conforming way to create a value of _Bool that has a value other than 0 or 1, and that should mean clang's behavior is not a bug.

BTW. I haven't tested my patch on a PPC system yet (where sizeof(bool) != 1), and won't be able to do so until I'm back home (I'm currently at EuroPython)
History
Date User Action Args
2014-07-21 09:13:17ronaldoussorensetrecipients: + ronaldoussoren, mark.dickinson, ned.deily, wayedt
2014-07-21 09:13:17ronaldoussorensetmessageid: <1405933997.86.0.980351507648.issue22012@psf.upfronthosting.co.za>
2014-07-21 09:13:17ronaldoussorenlinkissue22012 messages
2014-07-21 09:13:17ronaldoussorencreate