Thread overview
[Issue 3697] New: StructTemplateDeclaration and others missing constraint in rule
Jan 12, 2010
Jerry Quinn
Feb 13, 2010
Walter Bright
Mar 09, 2010
Walter Bright
January 12, 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@puremagic.com
        ReportedBy: jlquinn@optonline.net


--- Comment #0 from Jerry Quinn <jlquinn@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: -------
February 13, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3697


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2010-02-12 16:27:49 PST ---
Changeset 1421

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3697


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2010-03-08 22:27:59 PST ---
Fixed dmd 2.041

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------