Thread overview
[Issue 23897] Bad diagnostic "none of the overloads of template" for lamdba
May 06, 2023
Nick Treleaven
May 06, 2023
Dlang Bot
May 06, 2023
Nick Treleaven
May 06, 2023
Vladimir Panteleev
May 08, 2023
Dlang Bot
May 08, 2023
Nick Treleaven
May 06, 2023
https://issues.dlang.org/show_bug.cgi?id=23897

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #1 from Nick Treleaven <nick@geany.org> ---
> The misleading "overload" diagnostic was introduced in: https://github.com/dlang/dmd/pull/13544

I'm working on a pull to fix that now.

--
May 06, 2023
https://issues.dlang.org/show_bug.cgi?id=23897

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dmd pull request #15194 "Fix 'overloads' error when there are no overloads" mentioning this issue:

- Fix 'overloads' error when there are no overloads

  Part of Issue 23897 - Bad diagnostic "none of the overloads of template"
  for lamdba.

https://github.com/dlang/dmd/pull/15194

--
May 06, 2023
https://issues.dlang.org/show_bug.cgi?id=23897

--- Comment #3 from Nick Treleaven <nick@geany.org> ---
> Especially the last line is very useful, and is missing entirely from new compilers.

With git master, I do get the parameters:

Candidate is: `__lambda1(__T1, __T2)(a, b)`

--
May 06, 2023
https://issues.dlang.org/show_bug.cgi?id=23897

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=20268

--- Comment #4 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
(In reply to Nick Treleaven from comment #3)
> > Especially the last line is very useful, and is missing entirely from new compilers.
> 
> With git master, I do get the parameters:
> 
> Candidate is: `__lambda1(__T1, __T2)(a, b)`

Indeed, it was fixed in https://github.com/dlang/dmd/pull/15113 (so that half is duplicate of issue 20268). Thanks!

--
May 08, 2023
https://issues.dlang.org/show_bug.cgi?id=23897

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15194 "Fix 'overloads' error when there are no overloads" was merged into master:

- 2cf91b9484a1b639529d67e2a49e2ca07e2b664a by Nick Treleaven:
  Fix 'overloads' error when there are no overloads

  Part of Issue 23897 - Bad diagnostic "none of the overloads of template"
  for lamdba.

https://github.com/dlang/dmd/pull/15194

--
May 08, 2023
https://issues.dlang.org/show_bug.cgi?id=23897

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--