https://issues.dlang.org/show_bug.cgi?id=13667
Issue ID: 13667
Summary: ICE with inout and alias this
Product: D
Version: unspecified
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: ice-on-invalid-code
Severity: enhancement
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
cat > bug.d << CODE
struct Array(T)
{
Array!(T) impConv() const { return *cast(typeof(return)*)this; }
alias impConv this;
struct Range
{
Array _arr;
void front() inout { _arr[]; }
}
}
alias AI = Array!int;
CODE
dmd -c bug
--