From e3201d91b7b28f410c1cf371396c6c1664b18e15 Mon Sep 17 00:00:00 2001 From: Moritz Baumann Date: Thu, 12 Feb 2026 15:19:45 +0100 Subject: [PATCH] Fix conditions that disable real_concept test in test_next.cpp This test did not fail due to an MSVC bug, but due to a buggy ucrtbase in Windows Server 2022. --- test/test_next.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_next.cpp b/test/test_next.cpp index 128220f5fe..90ce492d9d 100644 --- a/test/test_next.cpp +++ b/test/test_next.cpp @@ -263,11 +263,11 @@ BOOST_AUTO_TEST_CASE( test_main ) #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS test_values(1.0L, "long double"); - // MSVC-14.3 fails with real concept on Github Actions, but the failure cannot be reproduced locally - // See: https://github.com/boostorg/math/pull/720 - #if !defined(_MSC_VER) || _MSC_VER < 1930 +#if defined(_MSC_VER) + // In some versions of Windows Server 2022, ucrtbase!ldexp has a bug that causes the following test to fail + if (FP_ZERO == std::fpclassify(std::ldexp(1.0L, -1075))) +#endif test_values(boost::math::concepts::real_concept(0), "real_concept"); - #endif #endif //