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 52d18a6 commit 2b01663Copy full SHA for 2b01663
clang/test/SemaTemplate/ms-function-specialization-class-scope.cpp
@@ -104,7 +104,13 @@ namespace UsesThis {
104
+x;
105
+A::x;
106
}
107
+
108
+ template<typename U>
109
+ static auto h() -> A*;
110
111
+ template<>
112
+ auto h<int>() -> decltype(this); // expected-error {{'this' cannot be used in a static member function declaration}}
113
};
114
- template struct A<int>; // expected-note {{in instantiation of function template specialization}}
115
+ template struct A<int>; // expected-note 2{{in instantiation of}}
116
0 commit comments