D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22931 - importC: Error: `0` has no effect
Summary: importC: Error: `0` has no effect
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:19 UTC by duser
Modified: 2022-03-30 01:13 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:19:23 UTC
void fn()
{
	0;
}

perhaps this error could be relaxed for importC
Comment 1 Dlang Bot 2022-03-29 05:04:29 UTC
@WalterBright created dlang/dmd pull request #13912 "fix Issue 22931 - importC: Error: 0 has no effect" fixing this issue:

- fix Issue 22931 - importC: Error: 0 has no effect

https://github.com/dlang/dmd/pull/13912
Comment 2 Dlang Bot 2022-03-30 01:13:31 UTC
dlang/dmd pull request #13912 "fix Issue 22931 - importC: Error: 0 has no effect" was merged into master:

- 36783b163ea278956c55c2ebe8be6587a3e36a80 by Walter Bright:
  fix Issue 22931 - importC: Error: 0 has no effect

https://github.com/dlang/dmd/pull/13912