Bug 13096 – Imported private identifiers conflict with public ones.

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-11T11:32:00Z
Last change time
2014-07-15T02:31:21Z
Assigned to
nobody
Creator
yuriy.glukhov

Comments

Comment #0 by yuriy.glukhov — 2014-07-11T11:32:43Z
// m1.d private struct S { } // m2.d struct S { } // main.d import m1; import m2; void main() { S s; } Compiler error: ./main.d(5): Error: m1.S at m1.d(2) conflicts with m2.S at m2.d(2) ./main.d(5): Error: module test struct m1.S is private
Comment #1 by yuriy.glukhov — 2014-07-11T12:23:48Z
Comment #2 by hsteoh — 2014-07-15T02:30:43Z
Seems to be a duplicate of issue #1238.
Comment #3 by hsteoh — 2014-07-15T02:31:21Z
*** This issue has been marked as a duplicate of issue 1238 ***