diff --git a/tcc.c b/tcc.c index c448a03..2a2b82e 100644 --- a/tcc.c +++ b/tcc.c @@ -7323,6 +7323,8 @@ static void post_type(CType *type, AttributeDef *ad) } else if (tok == '[') { /* array definition */ next(); + if (tok == TOK_RESTRICT1) + next(); n = -1; if (tok != ']') { n = expr_const();