aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/pre_parser.mly
diff options
context:
space:
mode:
authorBernhard Schommer <bschommer@users.noreply.github.com>2016-03-23 10:59:35 +0100
committerBernhard Schommer <bschommer@users.noreply.github.com>2016-03-23 10:59:35 +0100
commitccd59f7fc19ffe2347724b532d6ce13c8580c2ab (patch)
tree3c8f2643fe658a9126bdeae05324dc301e7321f7 /cparser/pre_parser.mly
parentd25405f247b2b94527393eba4c79a56291a7fd80 (diff)
parentd0af92096242ff6e452c726d682295145189e848 (diff)
downloadcompcert-kvx-ccd59f7fc19ffe2347724b532d6ce13c8580c2ab.tar.gz
compcert-kvx-ccd59f7fc19ffe2347724b532d6ce13c8580c2ab.zip
Merge pull request #94 from jhjourdan/parentherized_fun
Fix a bug in the pre-parser.
Diffstat (limited to 'cparser/pre_parser.mly')
-rw-r--r--cparser/pre_parser.mly1
1 files changed, 1 insertions, 0 deletions
diff --git a/cparser/pre_parser.mly b/cparser/pre_parser.mly
index d6a4a21c..21008f1c 100644
--- a/cparser/pre_parser.mly
+++ b/cparser/pre_parser.mly
@@ -665,6 +665,7 @@ direct_declarator:
| i = declarator_identifier
{ set_id_type i VarId; (i, Decl_ident) }
| LPAREN save_context x = declarator RPAREN
+ { x }
| x = direct_declarator LBRACK type_qualifier_list? optional(assignment_expression, RBRACK)
{ match snd x with
| Decl_ident -> (fst x, Decl_other)