Bug 22344 – ImportC: overloading of functions is not allowed

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-28T22:07:32Z
Last change time
2022-02-09T11:25:23Z
Keywords
accepts-invalid, ImportC, pull
Assigned to
No Owner
Creator
Iain Buclaw
See also
https://issues.dlang.org/show_bug.cgi?id=22342, https://issues.dlang.org/show_bug.cgi?id=22343

Comments

Comment #0 by ibuclaw — 2021-09-28T22:07:32Z
This should error, but doesn't. --- int func(int); int func() // number of arguments doesn't match prototype. { return 0; }
Comment #1 by ibuclaw — 2021-09-28T22:08:17Z
Related to issue 22342 and 22343.
Comment #2 by dlang-bot — 2022-02-09T09:00:28Z
@WalterBright created dlang/dmd pull request #13627 "fix Issue 22344 - ImportC: overloading of functions is not allowed" fixing this issue: - fix Issue 22344 - ImportC: overloading of functions is not allowed https://github.com/dlang/dmd/pull/13627
Comment #3 by dlang-bot — 2022-02-09T11:25:23Z
dlang/dmd pull request #13627 "fix Issue 22344 - ImportC: overloading of functions is not allowed" was merged into master: - 59b15ea796d513426fbf2789a5b7895b2b486041 by Walter Bright: fix Issue 22344 - ImportC: overloading of functions is not allowed https://github.com/dlang/dmd/pull/13627