Bug 22512 – importC: incomplete array type must have initializer
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-11-14T18:31:44Z
Last change time
2021-12-14T10:34:22Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
dave287091
Comments
Comment #0 by dave287091 — 2021-11-14T18:31:44Z
The following fails to compile:
// test.c
extern char *tzname[];
test.c(2): Error: variable `test.tzname` incomplete array type must have initializer
This pattern appears in stdio.h and time.h on macOS.
Comment #1 by dlang-bot — 2021-11-19T09:22:51Z
@WalterBright created dlang/dmd pull request #13323 "fix Issue 22512 - importC: incomplete array type must have initializer" fixing this issue:
- fix Issue 22512 - importC: incomplete array type must have initializer
https://github.com/dlang/dmd/pull/13323
Comment #2 by dave287091 — 2021-11-19T16:03:42Z
Apparently this fails with dmd build from stable, but works on master.
Comment #3 by dlang-bot — 2021-11-20T00:09:37Z
dlang/dmd pull request #13323 "fix Issue 22512 - importC: incomplete array type must have initializer" was merged into master:
- 27fb528ecdb295aebef18fed77dea5a226730596 by Walter Bright:
fix Issue 22512 - importC: incomplete array type must have initializer
https://github.com/dlang/dmd/pull/13323
@ibuclaw created dlang/dmd pull request #13345 "fix Issue 22512 - importC: incomplete array type must have initializer" fixing this issue:
- fix Issue 22512 - importC: incomplete array type must have initializer
- fix Issue 22512 - importC: incomplete array type must have initializer
https://github.com/dlang/dmd/pull/13345
Comment #6 by dlang-bot — 2021-11-23T07:16:27Z
dlang/dmd pull request #13345 "fix Issue 22512 - importC: incomplete array type must have initializer" was merged into stable:
- 8465601f6b51e40dfb135e6921b7de09178d0b23 by Walter Bright:
fix Issue 22512 - importC: incomplete array type must have initializer
- 784b005bd3e45de988f30121b1f40939a9b78c44 by Iain Buclaw:
fix Issue 22512 - importC: incomplete array type must have initializer
https://github.com/dlang/dmd/pull/13345
Comment #7 by dlang-bot — 2021-12-14T10:34:22Z
dlang/dmd pull request #13421 "merge stable" was merged into master:
- f1b841146f5f6484b4c5e0f4d383dff66489ed57 by Iain Buclaw:
fix Issue 22512 - importC: incomplete array type must have initializer (#13345)
* fix Issue 22512 - importC: incomplete array type must have initializer
* fix Issue 22512 - importC: incomplete array type must have initializer
Co-authored-by: Walter Bright <[email protected]>
https://github.com/dlang/dmd/pull/13421