On 24 January 2017 at 10:52, Robert burner Schadek via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:

> I have this program that used to compile with 72 but with 73 dmd is
> complaining that
> "Error: escaping reference to local variable t"
>
> auto ref f2(T)(auto ref T t, auto ref T s) {
>         return t;
> }
>

Maybe:

auto ref f2(T)(return auto ref T t, auto ref T s) {
        return t;
}

??

Reply via email to