[Issue 23463] New: Don't count skipped function overloads when limiting overloads shown

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 5 18:28:42 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23463

          Issue ID: 23463
           Summary: Don't count skipped function overloads when limiting
                    overloads shown
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: nick at geany.org

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.

--


More information about the Digitalmars-d-bugs mailing list