Bug 11769 – Wrong line number in "matches both" error message

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-18T20:33:00Z
Last change time
2013-12-19T00:30:32Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-12-18T20:33:59Z
This test case: template foo(T) // line 1 { void bar(wstring) {} // line 3 void bar(dstring) {} // line 4 } void main() { foo!string.bar("abc"); // line 8 } Current output: test.d(8): Error: test.foo!string.bar called with argument types (string) matches both: test.d(1): foo(T) and: test.d(1): foo(T) Expected output: test.d(8): Error: test.foo!string.bar called with argument types (string) matches both: test.d(3): bar(immutable(wchar)[] _param_0) and: test.d(4): bar(immutable(dchar)[] _param_0)
Comment #1 by k.hara.pg — 2013-12-18T20:37:43Z
Comment #2 by github-bugzilla — 2013-12-19T00:30:23Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4fdea73fa28b31715bcd4fae4ec1bea0bed26f6f fix Issue 11769 - Wrong line number in "matches both" error message https://github.com/D-Programming-Language/dmd/commit/db7ca853fd763d3a0a761c209a6a9bce3474cdff Merge pull request #2988 from 9rnsr/fix11769 Issue 11769 - Wrong line number in "matches both" error message