This code compiles with 2.071, but not with 2.072 nor 2.073: ``` struct S { int i;
auto ref foo() @safe { return i; } auto bar() @safe { return &foo(); // <-- Error } } void main() { auto s = S(); s.bar(); } ```The error is: "cannot take address of ref return of this.foo() in @safe function bar".
Is this a compiler regression, or is it a bug in the D code? https://issues.dlang.org/show_bug.cgi?id=17213 Thanks, Johan