← Back to index
|
Original Bugzilla link
Bug 22401 – importC: Error: cannot implicitly convert expression of type 'const(int[1])' to 'const(int*)'
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-17T13:17:37Z
Last change time
2022-02-08T08:06:01Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0
by ibuclaw — 2021-10-17T13:17:37Z
Another case of not saturating static arrays. --- struct S2 { const int *f1; }; const int C1[1] = {0}; const struct S2 C2 = {C1};
Comment #1
by dlang-bot — 2022-02-08T06:57:49Z
@WalterBright created dlang/dmd pull request #13623 "fix Issue 22401 - importC: Error: cannot implicitly convert expressio…" fixing this issue: - fix Issue 22401 - importC: Error: cannot implicitly convert expression of type const(int[1]) to const(int*)
https://github.com/dlang/dmd/pull/13623
Comment #2
by dlang-bot — 2022-02-08T08:06:01Z
dlang/dmd pull request #13623 "fix Issue 22401 - importC: Error: cannot implicitly convert expressio…" was merged into master: - eef3b347d347e02d5351595aa24b6ae4142b5f3a by Walter Bright: fix Issue 22401 - importC: Error: cannot implicitly convert expression of type const(int[1]) to const(int*)
https://github.com/dlang/dmd/pull/13623