[Bug 142] New: Assertion failure: '0' on line 610 in file 'template.c'
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed May 17 13:42:00 PDT 2006
    
    
  
http://d.puremagic.com/bugzilla/show_bug.cgi?id=142
           Summary: Assertion failure: '0' on line 610 in file 'template.c'
           Product: D
           Version: 0.157
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: lio at lunesu.com
// I don't know if the code is supposed to work,
// but I'm trying to convert
// #define A(x) x=2
template A(alias T) {
        void A(T) { T=2; }
}
void main()
{
        int i;
        A(i);
        assert(i==2);
}
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list