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


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugd...@yahoo.com.au
            Version|D1                          |D1 & D2
            Summary|Regression: ICE: Internal   |Regression(2.047,1.062):
                   |error: ../ztc/cg87.c 1364:  |ICE(cgcod.c): var+arr[]
                   |var+arr[]                   |
         OS/Version|Linux                       |All


--- Comment #1 from Don <clugd...@yahoo.com.au> 2010-08-04 00:13:42 PDT ---
That suggested patch is almost right. It fails even for the test case, though!
It needs to allow void assignments. This patch below passes the test suite.

PATCH: e2ir.c, BinExp::toElemBin(), line 2004.

    if ((tb1->ty == Tarray || tb1->ty == Tsarray || 
         tb2->ty == Tarray || tb2->ty == Tsarray) &&
        tb2->ty != Tvoid &&
        op != OPeq && op != OPandand && op != OPoror
       )
    {
        error("Array operation %s not implemented", toChars());
        return el_long(type->totym(), 0);  // error recovery
    }

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

Reply via email to