================
@@ -47,8 +47,8 @@ template<typename T>
void DerivedT<T>::Inner() {
Derived1T<T>::Foo();
Derived2T<T>::Member = 42;
- this->Derived1T<T>::Foo();
- this->Derived2T<T>::Member = 42;
+ this->Derived1T<T>::Foo(); // expected-error{{use 'template' keyword to
treat 'Derived1T' as a dependent template name}}
+ this->Derived2T<T>::Member = 42; // expected-error{{use 'template' keyword
to treat 'Derived2T' as a dependent template name}}
----------------
mizvekov wrote:
This is an access control test:
```suggestion
this->template Derived1T<T>::Foo();
this->template Derived2T<T>::Member = 42;
```
https://github.com/llvm/llvm-project/pull/92957
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits