digitalmars.D.bugs - [Issue 11766] New: private renamed import conflicts with external module function call
- d-bugmail puremagic.com (39/39) Dec 18 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11766
https://d.puremagic.com/issues/show_bug.cgi?id=11766 Summary: private renamed import conflicts with external module function call Product: D Version: unspecified Platform: All OS/Version: Linux Status: NEW Severity: minor Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: alienballance gmail.com 12:33:43 PST --- I don't really know how to properly named it, but following code illustrates my problem: === module b; private import socket = std.socket; == module a; import b; import core.sys.posix.sys.socket; void main() { socket(0,0,0); } == Output: a.d(7): Error: std.socket at b.d(2) conflicts with core.sys.posix.sys.socket.socket at /usr/include/dmd/druntime/import/core/sys/posix/sys/socket.d(463) a.d(7): Error: function expected before (), not module socket of type void Failed: 'dmd' '-v' '-o-' 'a.d' '-I.' Compiler: DMD64 D Compiler v2.064 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 18 2013