aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Parser.vy
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2016-09-27 13:18:17 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2016-09-27 13:18:17 +0200
commitad2a2c862abef3aee701d1bca0524fcbf2d07b30 (patch)
treeb14de9bd5716b583bcbe5ad1746a7ad53fddf866 /cparser/Parser.vy
parent0218da79e51bfdd3b5911aa0b80febf4cb7c0ef4 (diff)
downloadcompcert-kvx-ad2a2c862abef3aee701d1bca0524fcbf2d07b30.tar.gz
compcert-kvx-ad2a2c862abef3aee701d1bca0524fcbf2d07b30.zip
Keep anonymous members of anonymous structs.
The anonymous members are kept but using them is still an error. Bug 19907
Diffstat (limited to 'cparser/Parser.vy')
-rw-r--r--cparser/Parser.vy2
1 files changed, 1 insertions, 1 deletions
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