Likely a duplicate of issue 22537.
---
static int func();
int main()
{
return func();
}
int func()
{
return 0;
}
Comment #1 by dlang-bot — 2021-12-08T06:19:50Z
@WalterBright created dlang/dmd pull request #13399 "fix Issue 22538 - importC: function 'func' conflicts with function 'f…" fixing this issue:
- fix Issue 22538 - importC: function 'func' conflicts with function 'func' when using static in forward declaration
https://github.com/dlang/dmd/pull/13399
Comment #2 by dlang-bot — 2021-12-10T10:17:11Z
dlang/dmd pull request #13399 "fix Issue 22538, fix Issue 22537 - ImportC: multiple static / non-static declarations of same function" was merged into stable:
- f22f59c242a5c14193b8e734766ce2fb78a6287f by Walter Bright:
fix Issue 22538, fix Issue 22537 - ImportC: multiple static / non-static declarations of same function
https://github.com/dlang/dmd/pull/13399
Comment #3 by dlang-bot — 2021-12-14T10:34:30Z
dlang/dmd pull request #13421 "merge stable" was merged into master:
- 49bcc78ec2897cf4d12310a34a1cbb8cc21d458e by Walter Bright:
fix Issue 22538, fix Issue 22537 - ImportC: multiple static / non-static declarations of same function
https://github.com/dlang/dmd/pull/13421