[Issue 2173] foreach iteration not possible for associative array indexed with static array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 25 23:39:31 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2173
davidl at 126.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
------- Comment #1 from davidl at 126.com 2008-06-26 01:39 -------
i bet the code actually meant as following:
mtype.c (2790):
if (arg->storageClass & (STCout | STCref | STClazy))
{
--- if (t->ty == Tsarray)
+++ if (t->ty != Tsarray)
error(loc, "cannot have out or ref parameter of type %s",
t->toChars());
}
I hand-crafted a dmd which bypass this check, it can generate correct binary.
--
More information about the Digitalmars-d-bugs
mailing list