Sirraide wrote:

> (I'm surprised Clang doesn't diagnose that!)

Yeah, we explicitly don’t diagnose floating-point literals that are exactly 
representable:
https://github.com/llvm/llvm-project/blob/fb1de34e8db8d11c764c7ff422879f923554cbd9/clang/lib/Sema/SemaChecking.cpp#L11664-L11674

I don’t think doing this is a good idea but it’s been there since 2007.

https://github.com/llvm/llvm-project/pull/207288
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to