Fix parse error when parsing functions returning function pointers: The parameter...
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 27 Aug 2008 17:38:25 +0000 (17:38 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 27 Aug 2008 17:38:25 +0000 (17:38 +0000)
[r21523]

parser.c

index 3f93c10..e702ca8 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3819,6 +3819,8 @@ static construct_type_t *parse_inner_declarator(declaration_t *declaration,
                next_token();
                add_anchor_token(')');
                inner_types = parse_inner_declarator(declaration, may_be_abstract);
+               /* All later declarators only modify the return type, not declaration */
+               declaration = NULL;
                rem_anchor_token(')');
                expect(')');
                break;