klickverbot wrote:
Hello all,

currently, DMD accepts the following code, but the resulting binary bus-errors at runtime:

---
import std.stdio;

void foo( string str ) () {
    writefln( str );
}

void bar( string text ) {
    foo!( text );
}

void main() { bar( "asdf" );
}
---

Shouldn't this be a compile-time error?

Thanks,
klickverbot

Yes. Please put it in Bugzilla.

Reply via email to