erichkeane added a comment.

In https://reviews.llvm.org/D46535#1091787, @efriedma wrote:

> The check for whether an input is "out of range" doesn't handle fractions 
> correctly.  Testcase:
>
>   int a() { return 2147483647.5; }
>   unsigned b() { return -.5; }
>


Hrm... For some reaosn I had it in my head that both of those were UB...  
Interestingly, EDG/ICC thinks the second one is.  I'll look into this more to 
see if I can refine the warning.


Repository:
  rC Clang

https://reviews.llvm.org/D46535



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to