[Issue 685] New: dmd assertion failure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 12 23:47:59 PST 2006


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

           Summary: dmd assertion failure
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: davidl at 126.com


import std.stdio;
template a(AnotherT,char[] name,T...){
        AnotherT a(M...)(M){
        AnotherT localchar;
        foreach(a;T)
        {
                writefln(`hello`);
                localchar~=a.mangleof;
        }
        return cast(AnotherT)localchar;
        }
}

void main()
{
        char[] b="adf";
        uint i=123;
        char[3] c="Adf";
        writefln(a!(typeof(b),"Adf")());
}

dmd output:
Assertion failure: 'arg->ident' on line 747 in file 'func.c'

abnormal program termination


-- 



More information about the Digitalmars-d-bugs mailing list