member templates.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80396
91177308-0d34-0410-b5e6-
96231b3b80d8
const CXXScopeSpec &SS,
TemplateParameterList **ParamLists,
unsigned NumParamLists) {
- // FIXME: This routine will need a lot more testing once we have support for
- // member templates.
-
// Find the template-ids that occur within the nested-name-specifier. These
// template-ids will match up with the template parameter lists.
llvm::SmallVector<const TemplateSpecializationType *, 4>
struct X1<T>::Inner4 {
template<typename V>
V f2(T t, U u, V);
+
+ static U value;
};
+template<typename T>
+template<typename U>
+U X1<T>::Inner4<U>::value; // expected-error{{reference variable}}
+
template<typename T>
template<typename U>
template<typename V>
X1<int*>::Inner4<int> id4;
id4.f2(ip, i, dp); // expected-note{{instantiation}}
+
+ X1<int*>::Inner4<int>::value = 17;
+ i = X1<int*>::Inner4<int&>::value; // expected-note{{instantiation}}
}