From ad2a2c862abef3aee701d1bca0524fcbf2d07b30 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Tue, 27 Sep 2016 13:18:17 +0200 Subject: Keep anonymous members of anonymous structs. The anonymous members are kept but using them is still an error. Bug 19907 --- cparser/Parser.vy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cparser/Parser.vy') diff --git a/cparser/Parser.vy b/cparser/Parser.vy index ab07cb94..3e175a37 100644 --- a/cparser/Parser.vy +++ b/cparser/Parser.vy @@ -451,7 +451,7 @@ struct_declaration: { Field_group (fst decspec) (rev' decls) (snd decspec) } (* Extension to C99 grammar needed to parse some GNU header files. *) | decspec = specifier_qualifier_list SEMICOLON - { Field_group (fst decspec) [] (snd decspec) } + { Field_group (fst decspec) [(None,None)] (snd decspec) } specifier_qualifier_list: | typ = type_specifier rest = specifier_qualifier_list -- cgit