struct queue { int *first; int **last; }; struct queue my_queue = { 0, &my_queue.first }; Error: static variable `my_queue` cannot be read at compile time
@WalterBright created dlang/dmd pull request #13881 "fix Issue 22894 - importC: static struct initializer can't take addre…" fixing this issue: - fix Issue 22894 - importC: static struct initializer can't take address of own field https://github.com/dlang/dmd/pull/13881
dlang/dmd pull request #13881 "fix Issue 22894 - importC: static struct initializer can't take addre…" was merged into master: - de15dc91c982cb1932843f31e5b4ee10b14463d1 by Walter Bright: fix Issue 22894 - importC: static struct initializer can't take address of own field https://github.com/dlang/dmd/pull/13881