<br><br><div class="gmail_quote">On Fri, May 13, 2011 at 1:12 AM, Max Samukha <span dir="ltr"><<a href="mailto:maxsamukha@gmail.com">maxsamukha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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 regression? Very severe bug, in my opinion.<div><div></div><div class="h5"><br><br></div></div></blockquote><div><br>Forgot to mention that I tested with the latest dmd 2 beta on 32-bit linux.<br>
</div></div><br>