From b44cca466ef8b9d3320cec8d284853074a0935db Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 5 Jul 2011 11:37:47 +0200 Subject: [PATCH] Parse __extension__ like GCC: It must not appear at the start of parameter declarations. --- parser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/parser.c b/parser.c index 50451c5..1f30b16 100644 --- a/parser.c +++ b/parser.c @@ -3326,7 +3326,6 @@ static void parse_parameters(function_type_t *type, scope_t *scope) goto parameters_finished; case T_IDENTIFIER: - case T___extension__: DECLARATION_START { entity_t *entity = parse_parameter(); @@ -4551,7 +4550,6 @@ static void parse_kr_declaration_list(entity_t *entity) for (;;) { switch (token.type) { DECLARATION_START - case T___extension__: /* This covers symbols, which are no type, too, and results in * better error messages. The typical cases are misspelled type * names and missing includes. */ -- 2.20.1