[Issue 9113] New: ICE(interpret.c): CTFE assignment to member of struct in union

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 5 00:22:35 PST 2012


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

           Summary: ICE(interpret.c): CTFE assignment to member of struct
                    in union
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2012-12-05 00:22:34 PST ---
union U9113 {
   struct M {
        int y;
   }
   int xx;
}

int bug9113()
{
    U9113 x;
    x.M.y = 10;
    return 1;
}

static assert( bug9113() );
---
dmd: interpret.c:158: void CtfeStack::setValue(VarDeclaration*, Expression*):
Assertion `v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()'
failed.
Aborted

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