Commit 93bbd32c authored by Roberto Raggi's avatar Roberto Raggi

The core-declarator needs to be visited after the postfix declarators.

parent 6b5b9be7
......@@ -216,10 +216,10 @@ FullySpecifiedType Bind::declarator(DeclaratorAST *ast, const FullySpecifiedType
for (PtrOperatorListAST *it = ast->ptr_operator_list; it; it = it->next) {
type = this->ptrOperator(it->value, type);
}
type = this->coreDeclarator(ast->core_declarator, type);
for (PostfixDeclaratorListAST *it = ast->postfix_declarator_list; it; it = it->next) {
type = this->postfixDeclarator(it->value, type);
}
type = this->coreDeclarator(ast->core_declarator, type);
for (SpecifierListAST *it = ast->post_attribute_list; it; it = it->next) {
type = this->specifier(it->value, type);
}
......
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