D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3584 - DeclDef rule is missing entries
Summary: DeclDef rule is missing entries
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: spec
Depends on:
Blocks:
 
Reported: 2009-12-07 07:07 UTC by Jerry Quinn
Modified: 2015-06-09 01:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jerry Quinn 2009-12-07 07:07:54 UTC
There are several unreferenced rules in the grammar:

StaticAssert
ConditionalDeclaration
TemplateDeclaration
TemplateMixin

Based on other documentation and testing the compiler, I think the fix is to add them to the DeclDef rule, which would become:

DeclDef:
	AttributeSpecifier
	ImportDeclaration
	EnumDeclaration
	ClassDeclaration
	InterfaceDeclaration
	AggregateDeclaration
	Declaration
	Constructor
	Destructor
	Invariant
	UnitTest
	StaticConstructor
	StaticDestructor
        StaticAssert
        ConditionalDeclaration
	DebugSpecification
	VersionSpecification
	MixinDeclaration
        TemplateDeclaration
        TemplateMixin
	;
Comment 1 Leandro Lucarella 2009-12-14 06:28:53 UTC
http://www.dsource.org/projects/phobos/changeset/1378
Comment 2 Walter Bright 2009-12-31 11:12:45 UTC
Fixed dmd 1.054 and 2.038