Skip to content

Commit c1d323a

Browse files
committed
fix: gcc-13
gcc-13 ICE on `decltype(auto(...))`
1 parent a1d8c4d commit c1d323a

File tree

1 file changed

+1
-1
lines changed
  • src/core/include/mp-units/bits

1 file changed

+1
-1
lines changed

src/core/include/mp-units/bits/hacks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
// workarounds for https://cplusplus.github.io/CWG/issues/2387.html
8282
#define MP_UNITS_INLINE inline
8383

84-
#if __cpp_auto_cast >= 202110L && MP_UNITS_COMP_GCC != 12
84+
#if __cpp_auto_cast >= 202110L && MP_UNITS_COMP_GCC > 13
8585
#define MP_UNITS_NONCONST_TYPE(expr) decltype(auto(expr))
8686
#else
8787
#define MP_UNITS_NONCONST_TYPE(expr) std::remove_const_t<decltype(expr)>

0 commit comments

Comments
 (0)