www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2520] New: ICE on template mixin typedef

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2520

           Summary: ICE on template mixin typedef
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: kovrov+puremagic gmail.com


class Base { }
class Derived(alias TEST) : Base { mixin TEST; }

void test()() {}

void main()
{
    //alias Derived!(test) MyDerived;  // ok
    typedef Derived!(test) MyDerived;  // ICE
    Base obj = new MyDerived();
}


-- 
Dec 17 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2520


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch




------- Comment #1 from clugdbug yahoo.com.au  2009-05-04 09:28 -------
Patch against DMD2.029.

Index: e2ir.c
===================================================================
--- e2ir.c      (revision 24)
+++ e2ir.c      (working copy)
   -3603,7 +3603,7   

        cdfrom = e1->type->isClassHandle();
        cdto   = t->isClassHandle();
-       if (cdfrom->isInterfaceDeclaration())
+       if (cdfrom && cdfrom->isInterfaceDeclaration())
        {
            rtl = RTLSYM_INTERFACE_CAST;
            if (cdfrom->isCPPinterface())


-- 
May 04 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2520


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au




--- Comment #2 from Don <clugdbug yahoo.com.au>  2009-05-13 13:03:48 PDT ---
Fixed DMD2.030 and 1.045

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 13 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2520


Don <clugdbug yahoo.com.au> changed:

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




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