Bug 23447 – wrong expression in error message when template instance doesn't match any overload

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-10-31T10:57:04Z
Last change time
2022-10-31T14:21:22Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2022-10-31T10:57:04Z
template T(X) {} template T() {} alias t = T!1; // line 17 templateoverload.d(17): Error: template `templateoverload.T` does not match any template declaration templateoverload.d(17): Candidates are: templateoverload.d(14): T(X) templateoverload.d(15): T() It should say 'template instance `T!1`'... PR incoming.
Comment #1 by dlang-bot — 2022-10-31T11:06:31Z
@ntrel created dlang/dmd pull request #14604 "Fix Issue 23447 - wrong expression in error message when template ins…" fixing this issue: - Fix Issue 23447 - wrong expression in error message when template instance doesn't match any overload https://github.com/dlang/dmd/pull/14604
Comment #2 by dlang-bot — 2022-10-31T14:21:22Z
dlang/dmd pull request #14604 "Fix Issue 23447 - wrong expression in error message when template ins…" was merged into master: - 870f7ea2df2c85d1c6018aa15d62570103cbc765 by Nick Treleaven: Fix Issue 23447 - wrong expression in error message when template instance doesn't match any overload https://github.com/dlang/dmd/pull/14604