Skip to content

Commit

Permalink
Merge pull request #781 from 9rnsr/fix13941
Browse files Browse the repository at this point in the history
Issue 13941 - NewExpression grammar is insufficient
  • Loading branch information
9rnsr committed Jan 18, 2015
2 parents 572f53d + 5e9be8f commit 3444368
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions declaration.dd
Expand Up @@ -78,8 +78,7 @@ $(GNAME AltFuncDeclaratorSuffix):

$(GRAMMAR
$(GNAME Type):
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType)
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType) $(GLINK AltDeclarator)
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType) $(GLINK BasicType2)$(OPT)

$(GNAME TypeCtors):
$(GLINK TypeCtor)
Expand Down Expand Up @@ -126,6 +125,9 @@ $(MULTICOLS 5,
$(D void))

$(GNAME BasicType2):
$(GLINK BasicType2X) $(GLINK BasicType2)$(OPT)

$(GNAME BasicType2X):
$(D *)
$(D [ ])
$(D [) $(VEXPRESSION) $(D ])
Expand Down
6 changes: 4 additions & 2 deletions grammar.dd
Expand Up @@ -10,8 +10,7 @@ $(H3 $(LNAME2 type, Type))

$(GRAMMAR
$(GNAME Type):
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType)
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType) $(GLINK AltDeclarator)
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType) $(GLINK BasicType2)$(OPT)

$(GNAME TypeCtors):
$(GLINK TypeCtor)
Expand Down Expand Up @@ -57,6 +56,9 @@ $(GNAME BasicTypeX):
$(D void)

$(GNAME BasicType2):
$(GLINK BasicType2X) $(GLINK BasicType2)$(OPT)

$(GNAME BasicType2X):
$(D *)
$(D [ ])
$(D [) $(ASSIGNEXPRESSION) $(D ])
Expand Down

0 comments on commit 3444368

Please sign in to comment.