Don't search for undefined symbols in ambiguous typeof expressions.

This commit is contained in:
Roberto Raggi
2009-06-18 14:21:28 +02:00
parent 44aa96fcf5
commit 9a8e724f15
3 changed files with 22 additions and 1 deletions

View File

@@ -3158,7 +3158,8 @@ bool Parser::parseUnaryExpression(ExpressionAST *&node)
if (LA() == T_LPAREN) {
unsigned lparen_token = consumeToken();
if (parseTypeId(ast->expression) && LA() == T_RPAREN) {
consumeToken();
ast->lparen_token = lparen_token;
ast->rparen_token = consumeToken();
node = ast;
return true;
} else {