From c1d323a91a44fc19f36e237ed91fc242140759ce Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 18 Nov 2024 09:58:01 +0100 Subject: [PATCH] fix: gcc-13 gcc-13 ICE on `decltype(auto(...))` --- src/core/include/mp-units/bits/hacks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/bits/hacks.h b/src/core/include/mp-units/bits/hacks.h index 70ee2c14..3b8c9a89 100644 --- a/src/core/include/mp-units/bits/hacks.h +++ b/src/core/include/mp-units/bits/hacks.h @@ -81,7 +81,7 @@ // workarounds for https://cplusplus.github.io/CWG/issues/2387.html #define MP_UNITS_INLINE inline -#if __cpp_auto_cast >= 202110L && MP_UNITS_COMP_GCC != 12 +#if __cpp_auto_cast >= 202110L && MP_UNITS_COMP_GCC > 13 #define MP_UNITS_NONCONST_TYPE(expr) decltype(auto(expr)) #else #define MP_UNITS_NONCONST_TYPE(expr) std::remove_const_t