Thread overview
Why this code fail?
Feb 13, 2013
Andrea Fontana
Feb 13, 2013
Ali Çehreli
Feb 13, 2013
bearophile
February 13, 2013
class A
{
        auto foo()
        out(result){}
        body { return 42; }
}

void main(string[] args) { }

if you replace "auto" with "int" it works...
February 13, 2013
On 02/12/2013 04:01 PM, Andrea Fontana wrote:
> class A
> {
> auto foo()
> out(result){}
> body { return 42; }
> }
>
> void main(string[] args) { }
>
> if you replace "auto" with "int" it works...

Compiler bug:

$ dmd deneme.d
Segmentation fault

Please report it at

  http://d.puremagic.com/issues/

Thank you,
Ali
February 13, 2013
Ali Çehreli:

> Please report it at
>
>   http://d.puremagic.com/issues/

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

Bye,
bearophile