[clang] [C++23] [CLANG] Adding C++23 constexpr math functions: fmin and frexp. (PR #88978)

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 25 23:24:24 PDT 2024


================
@@ -14638,6 +14649,8 @@ bool FloatExprEvaluator::VisitCallExpr(const CallExpr *E) {
     return true;
   }
 
+  case Builtin::BIfmin:
+  case Builtin::BIfminf:
----------------
hubert-reinterpretcast wrote:

Don't make these evaluate in `constexpr`. Not only does this extend C (not a stated intent of the patch), it will cause accidental dependencies that break when `-fno-builtin` is used.

https://github.com/llvm/llvm-project/pull/88978


More information about the cfe-commits mailing list