[dmd-beta] dmd 1.071 and 2.056 beta

kenji hara k.hara.pg at gmail.com
Sun Oct 23 11:34:37 PDT 2011


2011/10/24 David Simcha <dsimcha at gmail.com>:
> Was there some change made to error checking for virtual
> functions/interfaces?  I just tried to compile gtkD with the beta and I got
> the error message "Ambiguous Virtual Function Call".  IDK if gtkD was
> relying on a DMD bug that was fixed or if this is a regression in DMD.  What
> does this error message mean?

It is probably gtkD bug.

"Ambiguous Virtual Function Call" error causes with like following code:

// from dmd/test/fail_compilation/fail2740.d
interface IFoo
{
    int foo();
}

mixin template MFoo(int N)
{
    int foo() { return N; }
}

class Foo : IFoo
{
    mixin MFoo!(1) t1;
    mixin MFoo!(2) t2;
}

Kenji Hara


More information about the dmd-beta mailing list