From 93bbd32c7bd02fce4f608593b3d43d8ead6d8957 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 13 Aug 2010 10:09:23 +0200 Subject: The core-declarator needs to be visited after the postfix declarators. --- src/shared/cplusplus/Bind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/cplusplus') diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index f1d627b88f..3856b3cae5 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -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); } -- cgit v1.2.1