digitalmars.D.bugs - [Issue 16244] New: compiler ICE on complex `typeof()` for method arg
- via Digitalmars-d-bugs (23/23) Jul 06 2016 https://issues.dlang.org/show_bug.cgi?id=16244
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 puremagic.com Reporter: ketmar 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. --
Jul 06 2016