================
@@ -2737,7 +2741,8 @@ static bool checkFloatingPointResult(EvalInfo &Info, 
const Expr *E,
   // - the expression being evaluated is not a part of global variable
   //   initializer,
   // the evaluation probably need to be rejected.
-  return true;
+  Info.FFDiag(E, diag::note_constexpr_float_arithmetic_strict);
+  return false;
----------------
hubert-reinterpretcast wrote:

The code returns `false` with the same diagnostic regardless of the `if` 
condition. Also, can you check the history of the FIXME and see if it still 
applies?

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

Reply via email to