www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23463] New: Don't count skipped function overloads when

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 puremagic.com
          Reporter: nick 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.

--
Nov 05 2022