[Issue 13208] [ICE](e2ir.c 2077) with array operation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 27 00:31:37 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13208

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |yebblies at gmail.com
           Hardware|x86_64                      |All
           Assignee|nobody at puremagic.com        |k.hara.pg at gmail.com
                 OS|Windows                     |All

--- Comment #2 from yebblies <yebblies at gmail.com> ---
Adding this chunk inside ArrayLiteralExp::semantic fixes it


    for(size_t i = 0; i < elements->dim; i++)
    {
        Expression *el = (*elements)[i];
        if (isNonAssignmentArrayOp(el))
        {
            el->error("array operation %s without assignment not implemented",
el->toChars());
            return new ErrorExp();
        }
    }

But I'll leave this to Kenji as IIRC he did this rest of this checking and
would know best.  I'm sure there are other places this check needs to be added.

--


More information about the Digitalmars-d-bugs mailing list