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

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 19:05:42 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>());
----------------
chapuni wrote:

So, we should revert #92957 for now, unless excluding problematic host compilers would be agreed.

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


More information about the llvm-commits mailing list