[Issue 7883] Compiler crashes with double inheritance and function contract

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 21 11:51:26 PDT 2012


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



--- Comment #5 from Øyvind Grotmol <dlang at grotmol.net> 2012-04-21 11:52:23 PDT ---
(In reply to comment #4)
> It compiles and runs on DMD 2.059 Win32

Hi,

Could you check this one also please?
By mistake the file I uploaded had commented out one of the contracts, and then
the file does indeed work. It is only when both contracts are in place, that
dmd crashes.

class A {
    int foo(int i)
    out (result) { }
    body { return 1; }
}

class B : A {
    int foo(int i)
    out (result) { }
    body { return 1; }

}

class C : B {
    int foo(int i) { return 1; }
}

void main() {
}

-- 
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