[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:18:00 PST 2024
https://github.com/killcerr created https://github.com/llvm/llvm-project/pull/117322
None
>From b1eb871332f39f7ea7a1d822f0b064e2db17ae4c Mon Sep 17 00:00:00 2001
From: killcerr <93478098+killcerr at users.noreply.github.com>
Date: Fri, 22 Nov 2024 20:17:23 +0800
Subject: [PATCH] [libc++] Fix failures with GCC 15 (#117319)
---
libcxx/include/__type_traits/decay.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the libcxx-commits
mailing list