[Issue 13895] Declaration grammar is insufficient
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Dec 27 06:34:13 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13895
--- Comment #1 from Kenji Hara <k.hara.pg at 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
--
More information about the Digitalmars-d-bugs
mailing list