Hi John, Le 2010-09-01 à 15:59, John McCall a écrit :
> No, I mean something like this:
> template <class T> struct A { T foo; };
> int bar(A<T> &a) { return 0; }
> i.e. where a specialization of A was used but not required to be a complete
> type and so template instantiation was never done.
I have just tested my proposed change with :
--------------------------
template <class T> struct A {
void hoo() {}
T foo;
};
template <class T>
int bar(A<T> &a) { return 0; }
int goo(A<int> &a) { return 0; }
----------------------------
and the template A<int> is indeed never instantiated and the
RecursiveASTVisitor behave correctly in this case also.
Benoit
Benoit Belley
Sr Principal Developer
M&E-Product Development Group
Autodesk Canada Inc.
10 Rue Duke
Montreal, Quebec H3C 2L7
Canada
Direct 514 954-7154
<<attachment: image002.gif>>
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
