Hello,

I wanted to report what I consider a bug in the DMD 2.064 RC1 compiler. I tried to use the issue-tracking-system but found it very unintuitive (at least for a first time user). I apologize if this is a bug already reported.

Consider the following example:

class A {
}

void func(A a) {
        writeln("In func");
        a.func();
}

...

auto a = A;
func(a);


The compiler should not accept this code, because there's no method func in class A.

But the code gets compiled (at least on my setup (ubuntu 13.10 - amd64) and the method call a.func() get translated to func(a), I guess, because the net result is that func(A a) is called recursively and the message "In func" is displayed over and over again.

Tor Einar

Reply via email to