aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLinus Torvalds <torvalds@penguin.transmeta.com>2003-04-04 17:12:42 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:12 -0700
commit9aac322fe706341b6fcccedc8c21075ee7c65940 (patch)
treec98c481ca3753a2b994459f2039797b500812958
parentfe88e935a0f88c7c877308152ad2d63dec582587 (diff)
downloadsparse-dev-9aac322fe706341b6fcccedc8c21075ee7c65940.tar.gz
Whee.. Arrays of arrays were type-parsed quite wrong. Maybe
this fixes it, and maybe it doesn't.
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
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 == ':') {