================ @@ -0,0 +1,42 @@ +// RUN: %clang_cc1 -verify -std=c++20 %s -fsyntax-only + +namespace std { +template <class T> struct remove_reference { typedef T type; }; +template <class T> struct remove_reference<T&> { typedef T type; }; +template <class T> struct remove_reference<T&&> { typedef T type; }; + +template <class T> typename remove_reference<T>::type &&move(T &&t); +} // namespace std + +// dcl.init 16.6.2.2 +struct A { ---------------- usx95 wrote:
Can you also add more nesting: https://godbolt.org/z/9jbsxPjrW https://godbolt.org/z/cj97eaPsK https://github.com/llvm/llvm-project/pull/117690 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits