From 9aac322fe706341b6fcccedc8c21075ee7c65940 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 4 Apr 2003 17:12:42 -0700 Subject: [PATCH] Whee.. Arrays of arrays were type-parsed quite wrong. Maybe this fixes it, and maybe it doesn't. --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index 5e957c68..fb6e128a 100644 --- a/parse.c +++ b/parse.c @@ -440,6 +440,7 @@ static struct token *direct_declarator(struct token *token, struct symbol **tree struct symbol *array = indirect(token->pos, ctype, SYM_ARRAY); token = abstract_array_declarator(token->next, array); token = expect(token, ']', "in abstract_array_declarator"); + ctype = &array->ctype; continue; } if (token->special == ':') { -- 2.11.4.GIT