www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1809] New: template.c:2600

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

           Summary: template.c:2600
           Product: D
           Version: 2.008
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: dhasenan gmail.com


The error:
dmd: template.c:2600: virtual MATCH TemplateTupleParameter::matchArg(Scope*,
Objects*, int, TemplateParameters*, Objects*, Declaration**, int): Assertion `i
+ 1 == dedtypes->dim' failed.
Aborted

The code:
---
string getMixin (TArg..., int i = 0) () {
    return ``;
}

class Thing (TArg...) {
    mixin(getMixin!(TArg)());
}

// it doesn't matter if I add template parameters here
public Thing!() stuff;
---


-- 
Jan 30 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1809


bugzilla digitalmars.com changed:

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





Fixed dmd 1.028 and 2.012


-- 
Mar 06 2008