[Issue 2863] New: Assertion failure: '0' on line 935 in file 'glue.c'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 20 10:06:10 PDT 2009


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

           Summary: Assertion failure: '0' on line 935 in file 'glue.c'
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: bugzilla at digitalmars.com


So now I'm playing with this new toy of D2, not using it in a serious way yet,
and I have written:

import std.stdio: writeln;
auto apply(alias f, TyArgs...)(TyArgs args) {
    return f(args);
}
void main() {
    writeln(  apply!( (x, y) { return x * y; } )(3, 4)  );
}

But when I compile it the compile spits out at compile-time:
Assertion failure: '0' on line 935 in file 'glue.c'

Bye,
bearophile


-- 



More information about the Digitalmars-d-bugs mailing list