D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22928 - importC: array does not have a boolean value
Summary: importC: array does not have a boolean value
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-25 12:09 UTC by duser
Modified: 2022-03-28 08:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description duser 2022-03-25 12:09:54 UTC
void fn()
{ 
	char cs[1];
	if (cs) ;
}

Error: expression `cs` of type `char[1]` does not have a boolean value
Comment 1 Dlang Bot 2022-03-28 00:18:40 UTC
@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 Dlang Bot 2022-03-28 08:36:12 UTC
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