[Issue 13959] New: ICE in e2ir when casting struct to pointer

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 9 11:09:09 PST 2015


https://issues.dlang.org/show_bug.cgi?id=13959

          Issue ID: 13959
           Summary: ICE in e2ir when casting struct to pointer
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: schveiguy at yahoo.com

struct S
{
    void* p;
}

void main()
{
    S s;
    auto a = cast(void*)s; //Error: e2ir: cannot cast s of type S to type void*
}

--


More information about the Digitalmars-d-bugs mailing list