D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7327 - Nested overload sets are not resolved correctly
Summary: Nested overload sets are not resolved correctly
Status: RESOLVED DUPLICATE of issue 12242
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 10:04 UTC by Martin Nowak
Modified: 2014-07-29 23:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2012-01-20 10:04:18 UTC
---- buga.d ----
void foo() {}
---- bugb.d ----
public import bugc, bugd;
---- bugc.d ----
void foo(int, int) {}
---- bugd.d ----
void foo(int) {}
---- main.d ----
import buga;
import bugb;

void main()
{
    foo(2);
}
-----
dmd -c main
----
bug.d(6): Error: buga.foo at buga.d(1) conflicts with __anonymous at 
bug.d(6): Error: function buga.foo () is not callable using argument types (int)
bug.d(6): Error: expected 0 arguments, not 1 for non-variadic function type void()

--------------------------------------

This should resolve to bugd.foo.
Comment 2 hsteoh 2014-07-29 23:27:15 UTC
Appears to have been fixed by https://github.com/D-Programming-Language/dmd/pull/3388 (Tested on Linux/64bit, on git HEAD).
Comment 3 Martin Nowak 2014-07-29 23:30:24 UTC

*** This issue has been marked as a duplicate of issue 12242 ***