← Back to index
|
Original Bugzilla link
Bug 4074 – function overloading fails
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-04-08T06:42:39Z
Last change time
2018-04-20T08:17:36Z
Assigned to
No Owner
Creator
Eugene Zheleznikoff
Attachments
ID
Filename
Summary
Content-Type
Size
605
bug.zip
archive with source code
application/x-zip-compressed
622
Comments
Comment #0
by digited — 2010-04-08T06:42:39Z
Created attachment 605 archive with source code module common; class A {} class B {} //-------------------------- module import1; import common; void foo(B b) {} //-------------------------- module import2; import common; void foo(A a) {} //-------------------------- module test; import common, import1, import2; void main() { auto b = new B; foo(b); } //-------------------------- >dmd test.d common.d import1.d import2.d test.d(8): Error: import1.foo at import1.d(5) conflicts with import2.foo at import2.d(5) reproduced on WinXP with DMD 1.051 and 1.057 workaround: module test; import common; import import1 : fooo = foo; import import2 : fooo = foo; void main() { auto b = new B; fooo(b); }
Comment #1
by simen.kjaras — 2018-04-20T08:17:36Z
Cannot replicate this on 2.079.1 under Windows 10.