two cases: // 1 extern int xs[]; void fn() { void *xp = &(xs[0]); } // 2 struct S { char text[4]; }; extern struct S ops[]; char *args[] = { ops[0].text }; Error: array index 0 is out of bounds `[0..0]`
@WalterBright created dlang/dmd pull request #13902 "fix Issue 22929 - importC: extern array with unknown length gives bou…" fixing this issue: - fix Issue 22929 - importC: extern array with unknown length gives bounds errors https://github.com/dlang/dmd/pull/13902
dlang/dmd pull request #13902 "fix Issue 22929 - importC: extern array with unknown length gives bou…" was merged into master: - 9cc80f73952cc486c0689032ae62cb92b93ca249 by Walter Bright: fix Issue 22929 - importC: extern array with unknown length gives bounds errors https://github.com/dlang/dmd/pull/13902