[Issue 5242] New: self referencing template constraint crashes compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 19 14:32:15 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5242

           Summary: self referencing template constraint crashes compiler
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: michal.minich at gmail.com


--- Comment #0 from Michal Minich <michal.minich at gmail.com> 2010-11-19 14:30:59 PST ---
I wanted to restrict template parameter X to allow only derived classes of A.

class A (X : A!(X)) { }

class B : A!(B) { }

void main () {}

-- 
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