[libcxx-commits] [libcxx] [libc++][math] Add `constexpr` to `copysign`, `copysignf`, `copysignl` (PR #216285)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 21 02:22:11 PDT 2026
frederick-vs-ja wrote:
> By that you mean Clang should just treat the non-`__builtin` version as `constexpr` even if it wasn’t declared `constexpr`?
This is what GCC does. I'm totally unsure whether we should follow GCC.
IIRC we've been waiting on such approach for at least 4 years. It seems to me that we don't need to spend 4 years to implement library workaround for P0533R9 (or even P0533R9 + P1383R2) IF library workaround actually works.
https://github.com/llvm/llvm-project/pull/216285
More information about the libcxx-commits
mailing list