Displaying 1 result from an estimated 1 matches for "classtemplatedecl".
2013 Sep 05
0
[LLVMdev] [ast-dump] Class template partial specializations missing from an implicit class template instantiation?
...template<typename U> struct Inner {float f(){};};
template<typename U> struct Inner<U*> {int f(){};};
};
int main() {
Outer<float>::Inner<int*> ii;
ii.f();
Outer<float>::Inner<int> i2;
i2.f();
}
The tree looks as expected for the template:
|-ClassTemplateDecl 0x38e1de0 <test-src/main.cpp:1:2, line:5:2> Outer
| |-TemplateTypeParmDecl 0x38e1ca0 <line:1:11, col:20> typename T
| |-CXXRecordDecl 0x38e1d50 <line:2:2, line:5:2> struct Outer definition
| | |-CXXRecordDecl 0x390eab0 <line:2:2, col:9> struct Outer
| | |-ClassTemplateDecl 0...