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


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugd...@yahoo.com.au


--- Comment #6 from Don <clugd...@yahoo.com.au> 2010-09-15 12:44:27 PDT ---
Wrong-code bugs are always important.
Here's a mitigation patch to turn it into a rejects-valid bug.
Haven't tracked down the root cause yet, but there certainly should be an
assert in this function -- if it's a virtual function, it should have a
non-negative vtable index, not -1.

e2ir.c, line 3275.  DelegateExp::toElem()

    Symbol *sfunc;
    int directcall = 0;

    printf("DelegateExp::toElem() '%s'\n", toChars());
+    if (func->isVirtual() && func->vtblIndex < 0)
+        error("Internal compiler error: malformed delegate. See Bugzilla
4860");
    sfunc = func->toSymbol();
    if (func->isNested())

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

Reply via email to