[dmd-beta] dmd 1.068 and 2.053 beta

Max Samukha maxsamukha at gmail.com
Fri May 13 00:53:09 PDT 2011


On Fri, May 13, 2011 at 10:12 AM, Don Clugston <dclugston at googlemail.com>wrote:

> On 13 May 2011 08:06, Max Samukha <maxsamukha at gmail.com> wrote:
> >
> > On Fri, May 13, 2011 at 3:14 AM, Don Clugston <dclugston at googlemail.com>
> > wrote:
> >>
> >> On 13 May 2011 00:12, Max Samukha <maxsamukha at gmail.com> wrote:
> >> > 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.
> >>
> >> Regression was introduced in 2.038. Shouldn't block this release.
> >
> > whoa
>
> I agree it's a severe bug. Can you please add it to Bugzilla?
>

http://d.puremagic.com/issues/show_bug.cgi?id=5994


> _______________________________________________
> 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/ba0b5142/attachment.html>


More information about the dmd-beta mailing list