<div class="gmail_quote">On Fri, May 13, 2011 at 10:12 AM, Don Clugston <span dir="ltr"><<a href="mailto:dclugston@googlemail.com">dclugston@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 13 May 2011 08:06, Max Samukha <<a href="mailto:maxsamukha@gmail.com">maxsamukha@gmail.com</a>> wrote:<br>
><br>
> On Fri, May 13, 2011 at 3:14 AM, Don Clugston <<a href="mailto:dclugston@googlemail.com">dclugston@googlemail.com</a>><br>
> wrote:<br>
>><br>
>> On 13 May 2011 00:12, Max Samukha <<a href="mailto:maxsamukha@gmail.com">maxsamukha@gmail.com</a>> wrote:<br>
>> > Assigning function pointers is not type-checked:<br>
>> ><br>
>> > import std.stdio;<br>
>> ><br>
>> > alias void function(byte a) foo_t;<br>
>> > void foo(int x) { writeln(x); }<br>
>> > foo_t foo_p = &foo;<br>
>> ><br>
>> > void main(string[] args)<br>
>> > {<br>
>> > foo_p(42);<br>
>> > }<br>
>> ><br>
>> > The code compiles and the program outputs -1075219670. Is it a known<br>
>> > regression? Very severe bug, in my opinion.<br>
>><br>
>> Regression was introduced in 2.038. Shouldn't block this release.<br>
><br>
> whoa<br>
<br>
</div>I agree it's a severe bug. Can you please add it to Bugzilla?<br></blockquote><div><br><a href="http://d.puremagic.com/issues/show_bug.cgi?id=5994">http://d.puremagic.com/issues/show_bug.cgi?id=5994</a><br> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">_______________________________________________<br>
dmd-beta mailing list<br>
<a href="mailto:dmd-beta@puremagic.com">dmd-beta@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/mailman/listinfo/dmd-beta</a><br>
</div></div></blockquote></div><br><br>