[Issue 3697] New: StructTemplateDeclaration and others missing constraint in rule
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 11 22:20:26 PST 2010
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: nobody at puremagic.com
ReportedBy: jlquinn at optonline.net
--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 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: -------
More information about the Digitalmars-d-bugs
mailing list