```d
struct A {
int i;
}
struct B {
A a;
}
__gshared const B b = {a:{1}};
__gshared const A* aptr = &b.a;
```
Error: expression `&B(A(1)).a` is not a constant
aptr is a const, and can be resolved at compile time.
Comment #1 by robert.schadek — 2024-12-13T19:33:39Z