[Issue 11766] New: private renamed import conflicts with external module function call
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 18 12:33:45 PST 2013
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 at puremagic.com
ReportedBy: alienballance at gmail.com
--- Comment #0 from Mariusz Gliwiński <alienballance at gmail.com> 2013-12-18 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: -------
More information about the Digitalmars-d-bugs
mailing list