Skip to content

Commit 667368f

Browse files
committed
decltype can contain a comma-expression
(this fixes some parser errors)
1 parent f70300e commit 667368f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/parser/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ bool Parser::parseSimpleTypeSpecifier(TypeSpecifierAST *&node,
11731173
{
11741174
ast->type_id = 0;
11751175
rewind(saved);
1176-
parseConditionalExpression(ast->expression);
1176+
parseCommaExpression(ast->expression);
11771177
}
11781178
ADVANCE(')', ")");
11791179
}

0 commit comments

Comments
 (0)