[Issue 1459] New: ICE on attempt to set value of non-lvalue return struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 30 20:02:56 PDT 2007


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

           Summary: ICE on attempt to set value of non-lvalue return struct
           Product: D
           Version: 1.020
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: wbaxter at gmail.com


struct Payload
{
    int i,j;
}
//alias int Payload;  // ok with this -- get "not an lvalue"

class Ouch {
    Payload property(int idx) {
        return props[idx];
    }
    void set(int x, Payload t) {
        property(x) = t;
    }
    Payload[] props;
}

// Internal error: ..\ztc\cgcs.c 217


-- 



More information about the Digitalmars-d-bugs mailing list