www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18776] New: Internal error: dmd/backend/symbol.c 1043

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: nobody puremagic.com
          Reporter: hsteoh quickfur.ath.cx

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

--
Apr 18 2018