https://issues.dlang.org/show_bug.cgi?id=12581
Issue ID: 12581
Summary: [ICE](statement.c, line 713) with invalid assignment +
alias this
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
The root cause of the ICE is same with bug 12501 and bug 12574, but the fixing
way is a bit different.
struct S
{
int[3] a;
alias a this;
}
struct T
{
S s;
alias s this;
}
void main()
{
T x;
x[] = (undef = 1);
}
---
assert statement.c(713) global.gaggedErrors || global.errors
--