Commit 928c6874 authored by Roberto Raggi's avatar Roberto Raggi

Set the right context when processing decl-specifiers.

parent 4d07a9bd
......@@ -662,7 +662,9 @@ bool CheckSymbols::visit(MemInitializerAST *ast)
bool CheckSymbols::visit(FunctionDefinitionAST *ast)
{
AST *thisFunction = _astStack.takeLast();
accept(ast->decl_specifier_list);
_astStack.append(thisFunction);
if (ast->declarator && ast->symbol && ! ast->symbol->isGenerated()) {
Function *fun = ast->symbol;
......
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