[dmd-beta] dmd 1.068 and 2.053 beta
Max Samukha
maxsamukha at gmail.com
Thu May 12 15:12:17 PDT 2011
Assigning function pointers is not type-checked:
import std.stdio;
alias void function(byte a) foo_t;
void foo(int x) { writeln(x); }
foo_t foo_p = &foo;
void main(string[] args)
{
foo_p(42);
}
The code compiles and the program outputs -1075219670. Is it a known
regression? Very severe bug, in my opinion.
On Fri, May 13, 2011 at 12:14 AM, Walter Bright <walter at digitalmars.com>wrote:
>
>
> On 5/12/2011 1:20 PM, Michel Fortin wrote:
>
>>
>> $ dmd test.d
>> ld: warning: directory not found for option
>> '-L/Library/Compilers/dmd2/osx/bin/../lib32'
>>
>> Compilation worked for me, but only because I have a libphobos2.a symlink
>> in /usr/local/lib. Looks like osx/bin/dmd.conf wrongly points to osx/lib32
>> instead of the renamed osx/lib.
>>
>>
> Fixed.
>
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20110513/ba219e7b/attachment.html>
More information about the dmd-beta
mailing list