[libcxx-commits] [libcxx] [libc++][type_traits] Implements "A type trait to detect reference binding to temporary" (PR #128649)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 25 23:52:51 PST 2025
================
@@ -0,0 +1,121 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++23
+
----------------
frederick-vs-ja wrote:
> If this is supposed to land before LLVM20 is released we should support Clang 18 but after that we don't. Right?
Hmm... I'm not sure whether some versions of Apple Clang should be considered unsupported.
> What do you mean "GCC is still unsupported"? It looks like GCC14 implemented [P2255R2](https://wg21.link/P2255R2), although I see a compilation error in our tests.
Sorry for misleading... It seems that GCC 14 has supported these 2 intrinsics, but access control was incorrectly ignored. So perhaps we should just skip the `ConvertsToRefPrivate` cases for GCC now.
https://github.com/llvm/llvm-project/pull/128649
More information about the libcxx-commits
mailing list