The following C code fails to compile: struct S { int x; }; int main(){ struct S s[8] = {0}; // Error: variable `test.main.s` is not a static and cannot have static initializer return 0; }
dlang/dmd pull request #14443 "fix Issue 23027 - ImportC: Array of struct is not a static and cannot…" was merged into master: - bb9d1f831b7e2ebdd74881303082b770b74d0f10 by Walter Bright: fix Issue 23027 - ImportC: Array of struct is not a static and cannot have static initializer https://github.com/dlang/dmd/pull/14443