www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 685] New: dmd assertion failure

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: davidl 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


-- 
Dec 12 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=685


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|dmd assertion failure       |dmd assertion failure




------- Comment #1 from bugzilla digitalmars.com  2006-12-27 02:04 -------
Fixed DMD 0.178


-- 
Dec 27 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=685





------- Comment #2 from thomas-dloop kuehne.cn  2006-12-30 09:50 -------
Added to DStress as
http://dstress.kuehne.cn/run/t/tuple_10_A.d
http://dstress.kuehne.cn/run/t/tuple_10_B.d


-- 
Dec 30 2006