[Issue 3049] ICE(cod4.c) or segfault: Array operation on void[] array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 10 17:31:43 PDT 2009


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





--- Comment #1 from Don <clugdbug at yahoo.com.au>  2009-06-10 17:31:43 PDT ---
There was a bug in the patch I posted, it assumed that Type::terror is a unique
type whereas it is currently the same as Tint32.
Fortunately, that line was not necessary anyway (it would just result in nicer
error messages).

PATCH: Add this code to the start of
BinExp::arrayOp(Scope *) in arrayop.c.
---
    if (type->toBasetype()->nextOf()->toBasetype()->ty==Tvoid) {
        error("Cannot perform array operations on void[] arrays");
        return this;
    }
---

-- 
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