From a111e9f3694305c632011e52c8643d309efb09e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 2 Jan 2022 00:07:42 +0100 Subject: [PATCH] Use BOOST_CONTAINER_FORCEINLINE with GCC > 5 due to some code generation errors detected in MinGW --- include/boost/container/detail/workaround.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/container/detail/workaround.hpp b/include/boost/container/detail/workaround.hpp index 05ca08c..fd48462 100644 --- a/include/boost/container/detail/workaround.hpp +++ b/include/boost/container/detail/workaround.hpp @@ -101,7 +101,8 @@ #elif defined(BOOST_MSVC) && defined(_DEBUG) //"__forceinline" and MSVC seems to have some bugs in debug mode #define BOOST_CONTAINER_FORCEINLINE inline -#elif defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ < 5))) +//#elif defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ < 5))) +#elif defined(__GNUC__) && (__GNUC__ <= 5) //Older GCCs have problems with forceinline #define BOOST_CONTAINER_FORCEINLINE inline #else