D1: accepts-invalid?
Don
nospam at nospam.com
Mon Aug 23 12:21:31 PDT 2010
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.
More information about the Digitalmars-d
mailing list