[Issue 10887] New: Inheriting class template with subclass field crashes DMD

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 24 19:54:47 PDT 2013


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

           Summary: Inheriting class template with subclass field crashes
                    DMD
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: luis at luismarques.eu


--- Comment #0 from Luís Marques <luis at luismarques.eu> 2013-08-24 19:54:40 PDT ---
The following pruned test case crashes DMD:

    class T() { }

    class A : T!(A.foo) { }

The original goal was something like this, which also crashes:

    class T(E) {}

    class A : T!(A.I)
    {
        interface I { }
    }

as opposed to the following, which works:

    class T(E) { }

    class A : T!(A) { }

or the following, which also works:

    class T(E) { }

    interface I { }

    class A : T!(I) { }

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