Bug 22928 – importC: array does not have a boolean value

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-25T12:09:54Z
Last change time
2022-03-28T08:36:12Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
duser

Comments

Comment #0 by duser — 2022-03-25T12:09:54Z
void fn() { char cs[1]; if (cs) ; } Error: expression `cs` of type `char[1]` does not have a boolean value
Comment #1 by dlang-bot — 2022-03-28T00:18:40Z
@WalterBright created dlang/dmd pull request #13901 "fix Issue 22928 - importC: array does not have a boolean value" fixing this issue: - fix Issue 22928 - importC: array does not have a boolean value https://github.com/dlang/dmd/pull/13901
Comment #2 by dlang-bot — 2022-03-28T08:36:12Z
dlang/dmd pull request #13901 "fix Issue 22928 - importC: array does not have a boolean value" was merged into master: - 46cbfce9e06c6afd174887e02b6dbacd7d8a6433 by Walter Bright: fix Issue 22928 - importC: array does not have a boolean value https://github.com/dlang/dmd/pull/13901