Bug 22971 – importC: can't initialize unsigned char array with string literal

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-04-02T20:54:03Z
Last change time
2022-04-06T19:21:21Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
duser

Comments

Comment #0 by duser — 2022-04-02T20:54:03Z
unsigned char empty[1] = ""; Error: cannot implicitly convert expression `""` of type `char*` to `ubyte[1]`
Comment #1 by dlang-bot — 2022-04-05T02:35:19Z
@WalterBright created dlang/dmd pull request #13948 "fix Issue 22971 - importC: can't initialize unsigned char array with …" fixing this issue: - fix Issue 22971 - importC: can't initialize unsigned char array with string literal https://github.com/dlang/dmd/pull/13948
Comment #2 by dlang-bot — 2022-04-06T19:21:21Z
dlang/dmd pull request #13948 "fix Issue 22971 - importC: can't initialize unsigned char array with …" was merged into master: - 1621246b2553b30bb7e01bc1c3e0f706d7d844a0 by Walter Bright: fix Issue 22971 - importC: can't initialize unsigned char array with string literal https://github.com/dlang/dmd/pull/13948