[Issue 12902] New: [ICE] Assertion failure '!ae->lengthVar' in 'expression.c' when using `opDollar`

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 12 23:49:39 PDT 2014


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

          Issue ID: 12902
           Summary: [ICE] Assertion failure '!ae->lengthVar' in
                    'expression.c' when using `opDollar`
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: verylonglogin.reg at gmail.com

This code ICEs the compiler:
---
struct S
{
    void opDollar() { }
    void opIndex() { }
    void opIndexAssign() { }
    void opSliceAssign() { }
}

void main()
{
    S s;
    s[] = s[$];
}
---
Assertion failure: '!ae->lengthVar' on line 13938 in file 'expression.c'
---

--


More information about the Digitalmars-d-bugs mailing list