[libcxx-commits] [libcxx] [libc++] Workaround for a bug of overloads in MS UCRT's `<math.h>` (PR #149234)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 18 08:41:13 PDT 2025
================
@@ -189,6 +189,82 @@ template <class _A1, class _A2, __enable_if_t<is_arithmetic<_A1>::value && is_ar
return __builtin_isunordered((type)__x, (type)__y);
}
+// MS UCRT incorrectly defines some functions in a way not working with integer types. Until C++20, this was worked
----------------
ldionne wrote:
@StephanTLavavej Do you think there is any way we might be able to get a fix in UCRT for this?
@frederick-vs-ja Since this is a bug in UCRT which has been reported and closed as "not to be fixed", I am tempted to say that keeping these tests as `XFAIL` and being non-conforming on UCRT might be acceptable. If they don't think it's worth fixing the issue, I'm not sure it's worth us doing a (pretty involved) workaround for it either.
https://github.com/llvm/llvm-project/pull/149234
More information about the libcxx-commits
mailing list