From: Wolfgang (Blub) Bumiller Date: Wed, 5 Dec 2012 16:14:44 +0000 (+0100) Subject: unexpected typename error when there are typenames in an expression X-Git-Tag: 0.1.9~107 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04a57d871e08098736ddb548c304eb8660e691c1;p=xonotic%2Fgmqcc.git unexpected typename error when there are typenames in an expression --- diff --git a/parser.c b/parser.c index 909fd43..488d5ce 100644 --- a/parser.c +++ b/parser.c @@ -1571,6 +1571,10 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma vec_pop(parser->pot); wantop = true; } + else if (parser->tok == TOKEN_TYPENAME) { + parseerror(parser, "unexpected typename"); + goto onerr; + } else if (parser->tok != TOKEN_OPERATOR) { if (wantop) { parseerror(parser, "expected operator or end of statement");