D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22973 - importC: sizeof with array and pointer access gives array type has incomplete element type
Summary: importC: sizeof with array and pointer access gives array type has incomplete...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ImportC, pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2022-04-02 20:58 UTC by duser
Modified: 2022-09-26 02:35 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description duser 2022-04-02 20:58:31 UTC
int *ps[1];
_Static_assert(sizeof(ps[0][0]) == sizeof(int), "");

Error: array type has incomplete element type `ps[0]`
Comment 1 Dlang Bot 2022-09-23 09:25:30 UTC
@WalterBright created dlang/dmd pull request #14474 "fix Issue 22973 - importC: sizeof with array and pointer access gives…" fixing this issue:

- fix Issue 22973 - importC: sizeof with array and pointer access gives array type has incomplete element type

https://github.com/dlang/dmd/pull/14474
Comment 2 Dlang Bot 2022-09-26 02:35:38 UTC
dlang/dmd pull request #14474 "fix Issue 22973 - importC: sizeof with array and pointer access gives…" was merged into master:

- f3aceb3c765f631f51fc0b73632e7a5612b7ec51 by Walter Bright:
  fix Issue 22973 - importC: sizeof with array and pointer access gives array type has incomplete element type

https://github.com/dlang/dmd/pull/14474