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

kinke <[email protected]> changed:

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

--- Comment #4 from kinke <[email protected]> ---
> Putting the address in an enum appears to work:

As does making the global immutable:

pure int fun(int* x) {
    static immutable int a;
    if (x == &a) return 1;
    return 42;
}

--

Reply via email to