April 15, 2022
https://issues.dlang.org/show_bug.cgi?id=17063

Steven Schveighoffer <schveiguy@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@gmail.com

--- Comment #1 from Steven Schveighoffer <schveiguy@gmail.com> ---
Found another interesting case of this:

```
void main()
{
    int x = 5;
    bool foo(T)(T arg)
    {
        return arg == x;
    }
    import std.functional;
    unaryFun!foo(5); // ok!
    testit!foo(5); // error
}

auto testit(alias pred, T)(T arg)
{
    import std.functional;
    return unaryFun!pred(arg);
}
```

Note that instantiating unaryFun!foo directly in the function works, but outside the function it doesn't. I can't see why it's different.

Changing foo to:

```
bool foo(int arg)
```

Works in both cases. Clearly the frame is accessible.

--
November 14, 2022
https://issues.dlang.org/show_bug.cgi?id=17063

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---


*** This issue has been marked as a duplicate of issue 5710 ***

--