[libcxx-commits] [libcxx] [libc++] Work around new GCC 15 type_traits builtins that can't be used as Clang's can (PR #137871)
Roland McGrath via libcxx-commits
libcxx-commits at lists.llvm.org
Thu May 8 19:48:49 PDT 2025
================
@@ -20,8 +20,18 @@ _LIBCPP_BEGIN_NAMESPACE_STD
#if __has_builtin(__add_lvalue_reference)
+# if defined(_LIBCPP_COMPILER_GCC)
+template <class _Tp>
+struct __add_lvalue_reference_gcc {
+ using type = __add_lvalue_reference(_Tp);
+};
----------------
frobtech wrote:
I've replaced the change with a simpler temporary workaround.
Please take another look.
https://github.com/llvm/llvm-project/pull/137871
More information about the libcxx-commits
mailing list