================
@@ -6229,7 +6231,37 @@ static ExprResult BuildConvertedConstantExpression(Sema 
&S, Expr *From,
   if (Result.isInvalid())
     return Result;
 
-  // Check for a narrowing implicit conversion.
+  if (SCS->Second == ICK_Floating_Conversion) {
----------------
Sirraide wrote:

Right, there’s a difference between ‘can be represented in the range of’ and 
‘can be represented exactly’, that makes sense. I missed that somehow.

https://github.com/llvm/llvm-project/pull/90387
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to