[Issue 8623] New: Multiple function match needs to print file+line	numbers
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Sep  5 16:22:27 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=8623
           Summary: Multiple function match needs to print file+line
                    numbers
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-09-05 16:22:55 PDT ---
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)
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list