Bug 8623 – Multiple function match needs to print file+line numbers

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-05T16:22:00Z
Last change time
2015-06-09T05:11:59Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-09-05T16:22:55Z
alias int LONG; void test(int* x) { } void test(LONG* x) { } void main() { test(null); } test.d(21): Error: function test.test called with argument types: ((typeof(null))) matches both: test.test(int* x) and: test.test(int* x) This is a simple case but it would be useful to file+line info since it helps me find codegenerator bugs. Error should be: test.d(21): Error: function test.test called with argument types: ((typeof(null))) matches both: test.d(17): test.test(int* x) and: test.d(18): test.test(int* x)
Comment #1 by github-bugzilla — 2012-10-06T08:36:04Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a0ea9c42648877c0a82d30ce2d0f78045c1af0e6 Merge pull request #1159 from AndrejMitrovic/Fix8623 fix Issue 8623 Add file and line number to overload error message.