[Issue 8602] New: Assertion failure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 30 14:20:46 PDT 2012


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

           Summary: Assertion failure
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2012-08-30 14:20:43 PDT ---
dmd 2.060

code:

template ReturnType(func...) if (func.length == 1) { }

struct BinaryOperatorX(string _op, rhs_t,C) {
    ReturnType!(mixin("C.opBinary!(_op,rhs_t)")) RET_T;
}

class MyClass {
    auto opBinary(string op, T)() { }
}

void PydMain() {
    BinaryOperatorX!("+", int, MyClass);
}

fireworks:
dmd: mtype.c:5254: virtual void TypeFunction::toDecoBuffer(OutBuffer*, int):
Assertion `next' failed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list