[libcxx-commits] [libcxx] [libcxxabi] [libc++] Fix failures with GCC 14 (PR #92663)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 21 15:56:55 PDT 2024


================
@@ -123,7 +123,7 @@ __constexpr_memcmp_equal(const _Tp* __lhs, const _Up* __rhs, __element_count __n
     }
     return true;
   } else {
-    return __builtin_memcmp(__lhs, __rhs, __count * sizeof(_Tp)) == 0;
+    return ::__builtin_memcmp(__lhs, __rhs, __count * sizeof(_Tp)) == 0;
----------------
ldionne wrote:

Thanks for explaining. I guess this makes sense, since this could be a function defined somewhere.

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


More information about the libcxx-commits mailing list