Skip to content

Commit

Permalink
Merge pull request #582 from 9rnsr/fix_aliasdecl
Browse files Browse the repository at this point in the history
Issue 11396 & 12802 - Allow optional 'StorageClasses' for old/new alias syntax
  • Loading branch information
MartinNowak committed May 27, 2014
2 parents 0a727f3 + 97a706d commit b1fec9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions declaration.dd
Expand Up @@ -343,12 +343,12 @@ $(H3 $(LNAME2 alias, Alias Declarations))

$(GRAMMAR
$(GNAME AliasDeclaration):
$(D alias) $(GLINK BasicType) $(GLINK Declarator)
$(D alias) $(GLINK StorageClasses)$(OPT) $(GLINK BasicType) $(GLINK Declarator)
$(D alias) $(I AliasDeclarationX) $(D ;)

$(GNAME AliasDeclarationX):
$(I Identifier) $(GLINK2 template, TemplateParameters)$(OPT) $(D =) $(GLINK Type)
$(I AliasDeclarationX) $(D ,) $(I Identifier) $(GLINK2 template, TemplateParameters)$(OPT) $(D =) $(GLINK Type)
$(I Identifier) $(GLINK2 template, TemplateParameters)$(OPT) $(D =) $(GLINK StorageClasses)$(OPT) $(GLINK Type)
$(I AliasDeclarationX) $(D ,) $(I Identifier) $(GLINK2 template, TemplateParameters)$(OPT) $(D =) $(GLINK StorageClasses)$(OPT) $(GLINK Type)
)

$(P $(I AliasDeclaration)s create a symbol that is an alias for another type,
Expand Down
6 changes: 3 additions & 3 deletions grammar.dd
Expand Up @@ -980,12 +980,12 @@ $(GNAME Declaration):

$(GRAMMAR
$(GNAME AliasDeclaration):
$(D alias) $(GLINK BasicType) $(GLINK Declarator)
$(D alias) $(GLINK StorageClasses)$(OPT) $(GLINK BasicType) $(GLINK Declarator)
$(D alias) $(I AliasDeclarationX) $(D ;)

$(GNAME AliasDeclarationX):
$(I Identifier) $(GLINK TemplateParameters)$(OPT) $(D =) $(GLINK Type)
$(I AliasDeclarationX) $(D ,) $(I Identifier) $(GLINK TemplateParameters)$(OPT) $(D =) $(GLINK Type)
$(I Identifier) $(GLINK TemplateParameters)$(OPT) $(D =) $(GLINK StorageClasses)$(OPT) $(GLINK Type)
$(I AliasDeclarationX) $(D ,) $(I Identifier) $(GLINK TemplateParameters)$(OPT) $(D =) $(GLINK StorageClasses)$(OPT) $(GLINK Type)
)

$(GRAMMAR
Expand Down

0 comments on commit b1fec9f

Please sign in to comment.