Accepts trailing return types.

This commit is contained in:
Roberto Raggi
2010-03-24 14:56:30 +01:00
parent fe1c4926de
commit cf125618af
6 changed files with 20 additions and 1 deletions

View File

@@ -1315,8 +1315,14 @@ bool Parser::parseDeclarator(DeclaratorAST *&node, bool stopAtCppInitializer)
}
ast->rparen_token = consumeToken();
// ### parse attributes
parseCvQualifiers(ast->cv_qualifier_list);
// ### parse ref-qualifiers
parseExceptionSpecification(ast->exception_specification);
if (_cxx0xEnabled && ! node->ptr_operator_list && LA() == T_ARROW)
parseTrailingReturnType(ast->trailing_return_type);
*postfix_ptr = new (_pool) PostfixDeclaratorListAST(ast);
postfix_ptr = &(*postfix_ptr)->next;
} else if (LA() == T_LBRACKET) {