[Bug 95] New: foreach() over empty AA yields Access Violation
Thomas Kuehne
thomas-dloop at kuehne.cn
Sat Apr 8 23:56:29 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-04-08:
> http://d.puremagic.com/bugzilla/show_bug.cgi?id=95
> Under Windows, using foreach to iterate over an uninitalized AA generates an
> Access Violation.
>
> //////////////////////////
> import std.stdio;
>
> void main(){
> uint[char[]] foobar;
> foreach(value; foobar){} // fails on foreach
> }
Added to DStress as
http://dstress.kuehne.cn/run/f/foreach_35_A.d
http://dstress.kuehne.cn/run/f/foreach_35_B.d
http://dstress.kuehne.cn/run/f/foreach_35_C.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEOLO93w+/yD4P9tIRAne3AKCXwPswPGm1bsXzgT7M1nyWFEerBACfQew2
mr8hcIW+GAmLszLrEW5kwDM=
=p/7L
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list