Bug 22892 – importC: dereferencing array as pointer is not supported
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-18T04:31:31Z
Last change time
2022-03-19T08:37:05Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
duser
Comments
Comment #0 by duser — 2022-03-18T04:31:31Z
char buf[1];
void fn() { char c = *buf; }
Error: using `*` on an array is no longer supported; use `*(buf).ptr` instead
Comment #1 by dlang-bot — 2022-03-19T07:15:09Z
@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 by dlang-bot — 2022-03-19T08:37:05Z
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