See: https://forum.dlang.org/post/[email protected]
It's possible to take the address of a global struct variable and store it in a const variable, but you can't take the address of a struct member:
```
struct S
{
uint a, b;
}
__gshared const S d = {3, 4};
__gshared const e0 = &d; // allowed
__gshared const e1 = &d.a; // error
```
The error is: cannot use non-constant CTFE pointer in an initializer `&d.a`
Comment #1 by robert.schadek — 2024-12-13T19:24:28Z