[clang] [clang] Constant evaluation support for `fmax{,f,l}` and `fmin{,f,l}` (PR #225824)

Atharva Potdar via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 7 04:21:32 PST 2026


atharva-potdar wrote:

> See [[constexpr.functions]/1](https://eel.is/c++draft/constexpr.functions#1). IIUC, these functions are effectively required to be non-constexpr until C++23, and constexpr since C++23. So it's more conforming (to old revisions of the C++ standard, though) to leave that these functions non-constexpr in old modes.

How would we proceed on only making them constexpr on C++23 and onwards?

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


More information about the cfe-commits mailing list