Push the template-prototype scope.

This commit is contained in:
Roberto Raggi
2010-08-11 14:56:51 +02:00
parent be1cde6ed5
commit f3746289b9

View File

@@ -1610,11 +1610,16 @@ bool FindUsages::visit(TemplateDeclarationAST *ast)
// unsigned export_token = ast->export_token;
// unsigned template_token = ast->template_token;
// unsigned less_token = ast->less_token;
Scope *previousScope = switchScope(ast->symbol);
for (DeclarationListAST *it = ast->template_parameter_list; it; it = it->next) {
this->declaration(it->value);
}
// unsigned greater_token = ast->greater_token;
this->declaration(ast->declaration);
(void) switchScope(previousScope);
return false;
}