[llvm] [ADT] Fix missing 'template' keyword (PR #98252)

Krystian Stasiowski via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 18:41:56 PDT 2024


================
@@ -460,8 +460,8 @@ namespace llvm {
 
     OwningArrayRef &operator=(OwningArrayRef &&Other) {
       delete[] this->data();
-      this->MutableArrayRef<T>::operator=(Other);
-      Other.MutableArrayRef<T>::operator=(MutableArrayRef<T>());
+      this->template MutableArrayRef<T>::operator=(Other);
+      Other.template MutableArrayRef<T>::operator=(MutableArrayRef<T>());
----------------
sdkrystian wrote:

@chapuni I dont think this is something that can be fixed in clang. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94799

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


More information about the llvm-commits mailing list