[Issue 4460] Regression(2.036) ICE(e2ir.c) when compiling foreach over associative array literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 29 00:24:47 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4460



--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-09-29 00:24:30 PDT ---
The regression was introduced in svn 218, static arrays as values. 
The relevant change was in statement.c, ForeachStatement::semantic.
---
    case Taarray:
        if (!checkForArgTypes())
        return this;

        taa = (TypeAArray *)tab;
        if (dim < 1 || dim > 2)
        {
        error("only one or two arguments for associative array foreach");
        break;
        }
-#if 0
+#if 1
        /* This currently fails if Key or Value is a static array.
         * The fix is to make static arrays a value type, not the
         * kludge they currently are.
         */
        tab = taa->impl->type;
        goto Lagain;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list