| Thread overview | |||||
|---|---|---|---|---|---|
|
February 13, 2013 Why this code fail? | ||||
|---|---|---|---|---|
| ||||
class A
{
auto foo()
out(result){}
body { return 42; }
}
void main(string[] args) { }
if you replace "auto" with "int" it works...
| ||||
February 13, 2013 Re: Why this code fail? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | 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 Re: Why this code fail? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | Ali Çehreli: > Please report it at > > http://d.puremagic.com/issues/ See: http://d.puremagic.com/issues/show_bug.cgi?id=8860 Bye, bearophile | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply