ref param mismatch --> segfault

Daniel Murphy yebblies at nospamgmail.com
Mon Jan 24 15:20:24 PST 2011


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:ihl0i0$1mes$1 at digitalmars.com...
> spir:
>
> A reduced test case shows that DMD has holes here, this compiles with no 
> errors. I think this DMD bug is already in Bugzilla:
>
> void foo(ref int x) {}
> void bar1(void function(int) f) {}
> void bar2(void function(string) f) {}
> void main() {
>    bar1(&foo);
>    bar2(&foo);
> }
>

Good old http://d.puremagic.com/issues/show_bug.cgi?id=3797 




More information about the Digitalmars-d mailing list