From 55b16fa3763521f0c279a0fc5ad01338a974aea3 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 14 Nov 2008 15:16:27 +0000 Subject: [PATCH] Teach cparser how to parse (f)(void);, i.e. global declarations can start with a (. [r23658] --- parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser.c b/parser.c index c7f8ae7..13f2cbb 100644 --- a/parser.c +++ b/parser.c @@ -10405,6 +10405,8 @@ static void parse_translation_unit(void) DECLARATION_START case T_IDENTIFIER: case T___extension__: + case '(': /* for function declarations with implicit return type and + * parenthesized declarator, i.e. (f)(void); */ parse_external_declaration(); break; -- 2.20.1