https://issues.dlang.org/show_bug.cgi?id=13895

--- Comment #1 from Kenji Hara <k.hara...@gmail.com> ---
(In reply to briancschott from comment #0)
> Adding "StorageClasses(opt)" to AggregateDeclaration, or to
> ClassDeclaration, InterfaceDeclaration, StructDeclaration, and
> UnionDeclaration should fix this.

It's an issue only in the declarations in statement level. If an aggregate
declaration is placed in module level scope, there's no issue.

So, I think it would be the easiest fixing the grammar DeclarationStatement as
follows:

DeclarationStatement:
    StorageClasses(opt) Declaration

--

Reply via email to