[cfe-dev] TemplateTypeParmDecl declaration context
Abramo Bagnara
abramo.bagnara at gmail.com
Fri Jun 18 10:34:06 PDT 2010
In my simple mind I'd have guessed that declaration context for
TemplateTypeParmDecl was the containing template, but:
1) in current clang this is not true in both (as neither of two template
container nodes is a decl context):
template <typename T>
T f(T x) {
}
template <typename T>
struct s {
static int v;
};
2) here there is no container to use as declaration context
template <typename T>
int s<T>::v;
I'm missing something about concept of declaration context?
That apart, IMHO and intuitively I'd say that a container for 2) would
be a very good thing.
More information about the cfe-dev
mailing list