We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb0206d commit 939774fCopy full SHA for 939774f
llvm/include/llvm/ADT/ArrayRef.h
@@ -460,8 +460,11 @@ namespace llvm {
460
461
OwningArrayRef &operator=(OwningArrayRef &&Other) {
462
delete[] this->data();
463
- this->MutableArrayRef<T>::operator=(Other);
464
- Other.MutableArrayRef<T>::operator=(MutableArrayRef<T>());
+ using Base = MutableArrayRef<T>;
+ // GCC versions prior to 11.1 incorrectly reject if the 'template' keyword
465
+ // is used prior to the nested-name-specifier here.
466
+ this->Base::operator=(Other);
467
+ Other.Base::operator=(Base());
468
return *this;
469
}
470
0 commit comments