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

This commit is contained in:
Roberto Raggi
2010-08-13 10:09:23 +02:00
parent 6b5b9be79c
commit 93bbd32c7b

View File

@@ -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);
}