Bug 23463 – Don't count skipped function overloads when limiting overloads shown

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-11-05T18:28:42Z
Last change time
2022-11-05T23:28:36Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2022-11-05T18:28:42Z
The code below has an error that no overloads match: void f_2(int); void f_2(int, int); void f_2(int, int, int); void f_2(int, int, int, int); void f_2(int, int, int, int, int); void f_2(int, int, int, int, int, int); deprecated void f_2(char); void main() { f_2(); } dmd lists the first five overloads by default then says: compiler\test\fail_compilation\diag8101.d(60): ... (2 more, -v to show) ... But deprecated (and @disable or erroring) overloads aren't printed. So it should actually say `1 more` instead. PR incoming.
Comment #1 by dlang-bot — 2022-11-05T18:31:22Z
@ntrel created dlang/dmd pull request #14620 "Fix Issue 23463 - Don't count skipped function overloads when limiting overloads shown" fixing this issue: - Fix Issue 23463 - Don't count skipped function overloads when limiting overloads shown Also avoids repeating the skip checks for fd. https://github.com/dlang/dmd/pull/14620
Comment #2 by dlang-bot — 2022-11-05T23:28:36Z
dlang/dmd pull request #14620 "Fix Issue 23463 - Don't count skipped function overloads when limiting overloads shown" was merged into master: - 36f035f4a8de5276fa15f81fd12ef80a0ed6096a by Nick Treleaven: Fix Issue 23463 - Don't count skipped function overloads when limiting overloads shown Also avoids repeating the skip checks for fd. https://github.com/dlang/dmd/pull/14620