[Bug 25] New: DMD segfault on foreach in template

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Mar 8 07:34:34 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> This bug is present in 0.149. It was not available in the version list.
>
> template crash(T) {
>         void crash(T t) {
>                 foreach(u;t) {}
>         }
> }
>
> void main() {
>         crash(null);
> }
>
> Causes DMD 0.149 linux to segfault. (It segfaults on the non-IFTI version too)

Added to DStress as
http://dstress.kuehne.cn/run/f/foreach_34_A.d
http://dstress.kuehne.cn/run/f/foreach_34_B.d
http://dstress.kuehne.cn/run/f/foreach_34_C.d
http://dstress.kuehne.cn/run/f/foreach_34_D.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFEDvln3w+/yD4P9tIRAmWuAKCYMuX7J1wtThXLsjjthmBTjU6aMgCgkqzn
yBB5OTCmyGQfnwNwSjnvgG0=
=VzQM
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list