https://issues.dlang.org/show_bug.cgi?id=16244
Issue ID: 16244
Summary: compiler ICE on complex `typeof()` for method arg type
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
this code segfaults with 2.071:
struct Foo {
int get_val () const { return 0; }
auto val() (typeof(cast()get_val) v) {}
}
void main () {
Foo().val = 45;
}
note that removing `cast()` gives proper error message instead.
--