[libcxx-commits] [libcxx] [libc++] Fix failure with GCC 15 (#117319) (PR #117322)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 22 04:19:00 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: None (killcerr)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/117322.diff
1 Files Affected:
- (modified) libcxx/include/__type_traits/decay.h (+1-1)
``````````diff
diff --git a/libcxx/include/__type_traits/decay.h b/libcxx/include/__type_traits/decay.h
index 7412044f931796..861dc2eb10d061 100644
--- a/libcxx/include/__type_traits/decay.h
+++ b/libcxx/include/__type_traits/decay.h
@@ -25,7 +25,7 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-#if __has_builtin(__decay)
+#if __has_builtin(__decay) && !defined(_LIBCPP_COMPILER_GCC)
template <class _Tp>
using __decay_t _LIBCPP_NODEBUG = __decay(_Tp);
``````````
</details>
https://github.com/llvm/llvm-project/pull/117322
More information about the libcxx-commits
mailing list