[Issue 683] New: dmd segv, this ain't the same as bug 682

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 12 20:39:02 PST 2006


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

           Summary: dmd segv, this ain't the same as bug 682
           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(char[]name, T...){
        char[] a(char[]name,T t){
        char[] localchar;
        foreach(a;T)
        {
                writefln(`hello`);
                localchar~=a.mangleof;
        }
        return localchar;
        }
}
void main()
{
        writefln(a!("Adf"[], typeof("adf"),uint).a("Adf"[],"adf",1234));
}
IMHO this should compile & run


-- 



More information about the Digitalmars-d-bugs mailing list