https://issues.dlang.org/show_bug.cgi?id=17821
Stanislav Blinov <stanislav.bli...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stanislav.bli...@gmail.com --- Comment #3 from Stanislav Blinov <stanislav.bli...@gmail.com> --- This compiles since 2.089.1: void main() { import core.atomic; { shared ulong x = 0x1234_5678_8765_4321; atomicStore(x, 0); assert(x == 0); } { struct S { ulong x; alias x this; } shared S s; s = 0x1234_5678_8765_4321; atomicStore(s, S(0)); // note this is not atomicStore(s, 0); assert(s.x == 0); } } I'm not sure that atomicStore should even try alias this. This can probably be closed as resolved now. --