================ @@ -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; ---------------- lntue wrote:
Done. I updated the checks to deal with global variable initializers. https://github.com/llvm/llvm-project/pull/199808 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
