[libcxx-commits] [libcxx] [libc++] Support more GCC 15 type_traits builtins (PR #137871)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 30 23:09:15 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);
+};
----------------
philnik777 wrote:

I'm not saying you should break GCC 14 with this patch. I'm saying you ahould just disable the problematic branches, and after we upgrade the CI to 15 we'll clean it up.

https://github.com/llvm/llvm-project/pull/137871


More information about the libcxx-commits mailing list