Fix parsing of K&R style function definitions.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Dec 2007 11:14:04 +0000 (11:14 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Dec 2007 11:14:04 +0000 (11:14 +0000)
[r18777]

parser.c

index 920fa15..573f186 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1805,6 +1805,7 @@ static declaration_t *parse_identifier_list(void)
        declaration_t *last_declaration = NULL;
        do {
                declaration_t *const declaration = allocate_declaration_zero();
+               declaration->type            = NULL; /* a K&R parameter list has no types, yet */
                declaration->source_position = token.source_position;
                declaration->symbol          = token.v.symbol;
                next_token();