Bug 11766 – private renamed import conflicts with external module function call

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2013-12-18T12:33:43Z
Last change time
2018-01-25T12:31:39Z
Assigned to
No Owner
Creator
Mariusz GliwiƄski

Comments

Comment #0 by alienballance — 2013-12-18T12:33:43Z
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
Comment #1 by razvan.nitu1305 — 2018-01-25T12:31:39Z
This has been solved in git HEAD. Closing as fixed