[Issue 4578] Regression(2.047,1.062): ICE(cgcod.c): var+arr[]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 4 00:13:44 PDT 2010


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug at 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 <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list