From 34886d135cec62883e76ba25bda34b4623e4a696 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Wed, 1 Feb 2017 14:56:21 +0100 Subject: Change the syntax to gcc/clangs syntax. This only means that there must be one identifier at the begining and then a designator. Bug 20765 --- cparser/pre_parser.mly | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cparser/pre_parser.mly') diff --git a/cparser/pre_parser.mly b/cparser/pre_parser.mly index dc9c5319..cdd043a7 100644 --- a/cparser/pre_parser.mly +++ b/cparser/pre_parser.mly @@ -254,7 +254,8 @@ postfix_expression: | postfix_expression LBRACK expression RBRACK | postfix_expression LPAREN argument_expression_list? RPAREN | BUILTIN_VA_ARG LPAREN assignment_expression COMMA type_name RPAREN -| BUILTIN_OFFSETOF LPAREN type_name COMMA designator_list RPAREN +| BUILTIN_OFFSETOF LPAREN type_name COMMA other_identifier RPAREN +| BUILTIN_OFFSETOF LPAREN type_name COMMA other_identifier designator_list RPAREN | postfix_expression DOT other_identifier | postfix_expression PTR other_identifier | postfix_expression INC -- cgit