http://d.puremagic.com/issues/show_bug.cgi?id=3697
Summary: StructTemplateDeclaration and others missing
constraint in rule
Product: D
Version: 2.038
Platform: All
URL: http://digitalmars.com/d/2.0/template.html#UnionTempla
teDeclaration
OS/Version: All
Status: NEW
Keywords: spec
Severity: normal
Priority: P2
Component: www.digitalmars.com
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Jerry Quinn <[email protected]> 2010-01-11 22:20:21 PST
---
The grammar defines
StructTemplateDeclaration:
struct Identifier ( TemplateParameterList ) StructBody
However, in this form, optional template Constraint is missing. I think the
grammar should be:
StructTemplateDeclaration:
struct Identifier ( TemplateParameterList ) Constraints_opt StructBody
and the compiler (2.038) agrees.
UnionTemplateDeclaration, InterfaceTemplateDeclaration, and
ClassTemplateDeclaration should be similarly updated.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------