www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11769] New: Wrong line number in "matches both" error message

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11769

           Summary: Wrong line number in "matches both" error message
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-12-18 20:33:59 PST ---
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)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 18 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11769


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-12-18 20:37:43 PST ---
https://github.com/D-Programming-Language/dmd/pull/2988

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 18 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11769



--- Comment #2 from github-bugzilla puremagic.com 2013-12-19 00:30:23 PST ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 19 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11769


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 19 2013