From 7dcfaaf413251b5a453e37f004e0f15eb33d7638 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 10 Jun 2025 16:02:22 -0400 Subject: [PATCH] Update mingw failure with thread_local --- include/boost/math/tools/config.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/math/tools/config.hpp b/include/boost/math/tools/config.hpp index 6dc945c69..5edf98d75 100644 --- a/include/boost/math/tools/config.hpp +++ b/include/boost/math/tools/config.hpp @@ -653,7 +653,9 @@ namespace boost{ namespace math{ // Some mingw flavours have issues with thread_local and types with non-trivial destructors // See https://sourceforge.net/p/mingw-w64/bugs/527/ // -#if (defined(__MINGW32__) && (__GNUC__ < 9) && !defined(__clang__)) +// When running windows-2022 or 2025 we see this issue again with GCC 12 and 14 +// +#if (defined(__MINGW32__) && ((__GNUC__ < 9) || (__GNUC__ >= 12)) && !defined(__clang__)) # define BOOST_MATH_NO_THREAD_LOCAL_WITH_NON_TRIVIAL_TYPES #endif