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

Roland McGrath via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 29 15:17:33 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:

If there is no window where both 14 and 15 work, then you make it impossible for people to upgrade.  I need to upgrade to a fixed libc++ today so that I can upgrade to GCC 15 tomorrow.  I can't upgrade to GCC 15 today because I need first land an upgraded libc++.

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


More information about the libcxx-commits mailing list