[Issue 16244] New: compiler ICE on complex `typeof()` for method arg type
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 6 13:15:38 PDT 2016
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: nobody at puremagic.com
Reporter: ketmar at ketmar.no-ip.org
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.
--
More information about the Digitalmars-d-bugs
mailing list