D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22892 - importC: dereferencing array as pointer is not supported
Summary: importC: dereferencing array as pointer is not supported
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-03-18 04:31 UTC by duser
Modified: 2022-03-19 08:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description duser 2022-03-18 04:31:31 UTC
char buf[1];
void fn() { char c = *buf; }

Error: using `*` on an array is no longer supported; use `*(buf).ptr` instead
Comment 1 Dlang Bot 2022-03-19 07:15:09 UTC
@WalterBright created dlang/dmd pull request #13843 "fix Issue 22892 - importC: dereferencing array as pointer is not supp…" fixing this issue:

- fix Issue 22892 - importC: dereferencing array as pointer is not supported

https://github.com/dlang/dmd/pull/13843
Comment 2 Dlang Bot 2022-03-19 08:37:05 UTC
dlang/dmd pull request #13843 "fix Issue 22892 - importC: dereferencing array as pointer is not supp…" was merged into master:

- 6c0a8d51e64962c4d9a76a707b117b8948d0f72a by Walter Bright:
  fix Issue 22892 - importC: dereferencing array as pointer is not supported

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