[Issue 17512] Unclear error message when returning a reference to local variable

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 johanenge...@weka.io changed: What|Removed |Added Summary|[REG 2.073] wrong deduction |Unclear error message when

[Issue 17512] Unclear error message when returning a reference to local variable

2017-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512 --- Comment #2 from johanenge...@weka.io --- Or... it _is_ a frontend bug, as the compiler should deduce that the return type cannot be 'ref'. It correctly deduces that ("does not return any indirections") but because it added "return" function attrib