[cfe-commits] [PATCH] fixes PR5206
Zhanyong Wan (λx.x x)
wan at google.com
Thu Oct 15 17:01:22 PDT 2009
Can someone review this? Thanks.
C++ 5.[14,15]: the && and || operators produce a bool.
C has no bool type and thus the rule is different there:
C99 6.5.[13,14]: the && and || operators produce an int.
Currently clang always thinks the result is an int (the C99 behavior). It
should consider the result type bool in C++ mode.
--
Zhanyong
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr5206.patch
Type: text/x-patch
Size: 1400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091015/351a86b9/attachment.bin>
More information about the cfe-commits
mailing list