Skip to content

Commit

Permalink
Merge pull request #1293 from 9rnsr/fix9766
Browse files Browse the repository at this point in the history
Issue 9766 - align(n) with n compile-time constant
  • Loading branch information
WalterBright committed Jun 23, 2016
2 parents 6c5e1b2 + 0825696 commit f4f75cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/attribute.dd
Expand Up @@ -185,7 +185,7 @@ $(H3 $(LNAME2 align, $(D align) Attribute))
$(GRAMMAR
$(GNAME AlignAttribute):
$(D align)
$(D align) $(D $(LPAREN)) $(GLINK2 lex, IntegerLiteral) $(D $(RPAREN))
$(D align) $(D $(LPAREN)) $(GLINK2 expression, AssignExpression) $(D $(RPAREN))
)


Expand Down Expand Up @@ -215,7 +215,7 @@ struct S
auto sz = S.sizeof; // 16
--------

$(P $(I IntegerLiteral) specifies the alignment
$(P $(I AssignExpression) specifies the alignment
which matches the behavior of the companion C compiler when non-default
alignments are used. It must be a positive power of 2.
)
Expand Down
2 changes: 1 addition & 1 deletion spec/grammar.dd
Expand Up @@ -1631,7 +1631,7 @@ $(GNAME LinkageType):
$(GRAMMAR
$(GNAME AlignAttribute):
$(D align)
$(D align) $(D $(LPAREN)) $(GLINK_LEX IntegerLiteral) $(D $(RPAREN))
$(D align) $(D $(LPAREN)) $(GLINK2 expression, AssignExpression) $(D $(RPAREN))
)

$(GRAMMAR
Expand Down

0 comments on commit f4f75cb

Please sign in to comment.