diff --git a/parser.c b/parser.c index a49deb5..d3ca471 100644 --- a/parser.c +++ b/parser.c @@ -415,6 +415,9 @@ static ast_value *parse_type(parser_t *parser, int basetype, bool *isfunc) goto on_error; } + if (params.p_count > 8) + parseerror(parser, "more than 8 parameters are currently not supported"); + var = ast_value_new(ctx, "", vtype); if (!var) goto on_error;