www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10887] New: Inheriting class template with subclass field crashes DMD

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: luis luismarques.eu


--- Comment #0 from Luís Marques <luis 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: -------
Aug 24 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10887


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-08-24
20:20:12 PDT ---
Appears to be fixed in git-head.

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