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: [email protected]
Reporter: [email protected]
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'
---
--