https://issues.dlang.org/show_bug.cgi?id=22916
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |INVALID --- Comment #9 from Walter Bright <[email protected]> --- > The only thing my original example does differently is giving the pointer > payload a different type (`int*` instead of `int`), which shouldn't affect > this example since it's the second layer of indirection, it shouldn't be > affected by `scope` or `return scope`. That difference makes all the difference. The trouble is the code is trying to store a scope protected value `int* p` into the unprotected payload pointer `*ptr`. There's no way dip1000 can do that. You'll have to use @trusted code. --
