Message223566
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) |
|
Date |
User |
Action |
Args |
2014-07-21 09:13:17 | ronaldoussoren | set | recipients:
+ ronaldoussoren, mark.dickinson, ned.deily, wayedt |
2014-07-21 09:13:17 | ronaldoussoren | set | messageid: <1405933997.86.0.980351507648.issue22012@psf.upfronthosting.co.za> |
2014-07-21 09:13:17 | ronaldoussoren | link | issue22012 messages |
2014-07-21 09:13:17 | ronaldoussoren | create | |
|