https://issues.dlang.org/show_bug.cgi?id=20674

Paul Backus <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Paul Backus <[email protected]> ---
Note that this can be worked around by explicitly declaring the local variable
in the second example `scope`:

---
int* f()(int* p)
{
    static int g;
    g = 0;
    scope p2 = p; /* the only difference */
    return new int;
}

int* g() @safe
{
    int x;
    return f(&x); /* ok */
}
---

--

Reply via email to