Why this code fail?

Ali Çehreli acehreli at yahoo.com
Tue Feb 12 16:09:31 PST 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


More information about the Digitalmars-d mailing list