Skip to content

Commit

Permalink
Merge pull request #4737 from mihails-strasuns-sociomantic/d1-static-…
Browse files Browse the repository at this point in the history
…struct

[D1] Accept `static struct` at statement context
  • Loading branch information
WalterBright committed Jun 12, 2015
2 parents e26a181 + e9bf6c4 commit 69d366f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,7 @@ Dsymbols *Parser::parseDeclarations()
return a;
}

if (token.value == TOKclass)
if (token.value == TOKclass || token.value == TOKstruct)
{ AggregateDeclaration *s;

s = (AggregateDeclaration *)parseAggregate();
Expand Down

0 comments on commit 69d366f

Please sign in to comment.