Commit f3746289 authored by Roberto Raggi's avatar Roberto Raggi

Push the template-prototype scope.

parent be1cde6e
...@@ -1610,11 +1610,16 @@ bool FindUsages::visit(TemplateDeclarationAST *ast) ...@@ -1610,11 +1610,16 @@ bool FindUsages::visit(TemplateDeclarationAST *ast)
// unsigned export_token = ast->export_token; // unsigned export_token = ast->export_token;
// unsigned template_token = ast->template_token; // unsigned template_token = ast->template_token;
// unsigned less_token = ast->less_token; // unsigned less_token = ast->less_token;
Scope *previousScope = switchScope(ast->symbol);
for (DeclarationListAST *it = ast->template_parameter_list; it; it = it->next) { for (DeclarationListAST *it = ast->template_parameter_list; it; it = it->next) {
this->declaration(it->value); this->declaration(it->value);
} }
// unsigned greater_token = ast->greater_token; // unsigned greater_token = ast->greater_token;
this->declaration(ast->declaration); this->declaration(ast->declaration);
(void) switchScope(previousScope);
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment