[Issue 1603] New: Overload sets bug

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 20 10:12:20 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1603

           Summary: Overload sets bug
           Product: D
           Version: 2.007
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: andrei at metalanguage.com


The following code does not compile:

module A;
extern(C) void foo(in char*) {}
// end of module

module B;
void foo(string) {}
// end of module

import A, B;

main()
{
  foo("string");
}

The call is ambiguous although it should make it to B.foo.


-- 



More information about the Digitalmars-d-bugs mailing list