Thread overview
big array crashes dmd .121 and optlink
Apr 17, 2005
zwang
Apr 17, 2005
Walter
Apr 18, 2005
Thomas Kuehne
April 17, 2005
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
"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
-----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-----