Hi Zhanyong! I did not see your patch and committed a similar fix. Sorry about that! (Fix looks great though :)
Anders 15 okt 2009 kl. 17.01 skrev Zhanyong Wan (λx.x x): > 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 > <pr5206.patch>_______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
