www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17287] New: [ICE] backend/cgcod.c 255: zero length static

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 puremagic.com
          Reporter: ilyayaroshenko 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

--
Mar 30