Commit 19beb9c8 authored by Erik Verbruggen's avatar Erik Verbruggen

Fixed parsing of selector argument expressions.

parent 6573ec57
......@@ -3370,11 +3370,12 @@ bool Parser::parseObjCSelectorArg(ObjCSelectorArgumentAST *&selNode, ObjCMessage
selNode->colon_token = consumeToken();
argNode = new (_pool) ObjCMessageArgumentAST;
ExpressionAST *expr = argNode->parameter_value_expression;
ExpressionAST **expr = &(argNode->parameter_value_expression);
unsigned expressionStart = cursor();
if (parseAssignmentExpression(expr) && LA() == T_COLON && expr->asCastExpression()) {
if (parseAssignmentExpression(*expr) && LA() == T_COLON && (*expr)->asCastExpression()) {
rewind(expressionStart);
parseUnaryExpression(expr);
parseUnaryExpression(*expr);
//
}
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment