mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
unexpected typename error when there are typenames in an expression
This commit is contained in:
parent
2eea7b03c0
commit
04a57d871e
1 changed files with 4 additions and 0 deletions
4
parser.c
4
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");
|
||||
|
|
Loading…
Reference in a new issue