Thread overview | |||||
---|---|---|---|---|---|
|
April 17, 2005 big array crashes dmd .121 and optlink | ||||
---|---|---|---|---|
| ||||
void main(){ static char a[int.max/32]; //crashes dmd .121 } ------ void main(){ static char a[int.max/32] = [0]; //crashes optlink } |
April 17, 2005 Re: big array crashes dmd .121 and optlink | ||||
---|---|---|---|---|
| ||||
Posted in reply to zwang | "zwang" <nehzgnaw@gmail.com> wrote in message news:d3sq2j$1086$1@digitaldaemon.com... > void main(){ > static char a[int.max/32] = [0]; > //crashes optlink > } This is a long known bug in optlink :-( Fortunately, the workaround is both trivial and better anyway, as it is inefficient to have a giant .exe file full of 0's. |
April 18, 2005 Re: big array crashes dmd .121 and optlink | ||||
---|---|---|---|---|
| ||||
Posted in reply to zwang | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 zwang schrieb am Sun, 17 Apr 2005 12:51:54 +0800: > void main(){ > static char a[int.max/32]; > //crashes dmd .121 > } > > ------ > > void main(){ > static char a[int.max/32] = [0]; > //crashes optlink > } Added to DStress as http://dstress.kuehne.cn/run/array_initialization_08.d http://dstress.kuehne.cn/nocompile/array_initialization_09.d http://dstress.kuehne.cn/run/array_initialization_10.d http://dstress.kuehne.cn/nocompile/array_initialization_11.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCY2Ih3w+/yD4P9tIRAjXPAJ4hvFw8XJLTBXICbJ4mymtCEbqeHwCdGcyX FxYjjBtNolA3qgou7DyQHrM= =wmdW -----END PGP SIGNATURE----- |
Copyright © 1999-2021 by the D Language Foundation