summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-08-13 10:09:23 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2010-08-13 10:09:45 +0200
commit93bbd32c7bd02fce4f608593b3d43d8ead6d8957 (patch)
tree53dff46b1f501e3235d1d98f481beb0aa834afdc /src/shared/cplusplus
parent6b5b9be79c549d4a64580d3e5b9c973098c80b28 (diff)
downloadqt-creator-93bbd32c7bd02fce4f608593b3d43d8ead6d8957.tar.gz
The core-declarator needs to be visited after the postfix declarators.
Diffstat (limited to 'src/shared/cplusplus')
-rw-r--r--src/shared/cplusplus/Bind.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}