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

          Issue ID: 18776
           Summary: Internal error: dmd/backend/symbol.c 1043
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

Reduced code:

-------
struct V
{
    V opSlice(size_t i, size_t j) { return V.init; }
    @property size_t opDollar() { return 1; }
}
struct R
{
    V opIndex(size_t) { return V.init; }
}
struct C
{
    R x() { return R.init; }
}
void main()
{
    C c;
    auto v = c.x[0][0 .. $];
}
-------

Compiler output:

-------
Internal error: dmd/backend/symbol.c 1043
-------

--

Reply via email to