[Issue 17287] New: [ICE] backend/cgcod.c 255: zero length static arrays

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 30 01:57:06 PDT 2017


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

          Issue ID: 17287
           Summary: [ICE] backend/cgcod.c 255: zero length static arrays
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ilyayaroshenko at gmail.com

struct Sl
{
    size_t a;
    ptrdiff_t[0] str;
    size_t b;

    this(ptrdiff_t[0] str)
    {
    }

    auto opIndex()
    {
        auto c = b;
        auto ret = Sl(str);
    }
}

dmd -m32

Internal error: backend/cgcod.c 255

--


More information about the Digitalmars-d-bugs mailing list