https://issues.dlang.org/show_bug.cgi?id=22154
Nathan S. <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Nathan S. <[email protected]> --- Putting the address in an enum appears to work: --- __gshared int a; pure int fun(int* x) { enum int* addr = &a; if (x == addr) return 1; return 42; } --- --
