Bug 15578 – Should have access to namespace private symbols from same module

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-18T08:43:00Z
Last change time
2016-03-19T20:21:41Z
Keywords
C++
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2016-01-18T08:43:28Z
private: int j; extern(C++, ns) int k; void f() { j = 0; // works as expected k = 0; // Error: variable foo.ns.k is private }
Comment #1 by bugzilla — 2016-01-20T03:25:37Z
Comment #2 by turkeyman — 2016-01-20T03:47:22Z
Thanks
Comment #3 by github-bugzilla — 2016-01-23T00:22:34Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/92e637e5f3b148c923aeeed3b401d6e628e0cf4e fix Issue 15578 - Should have access to namespace private symbols from same module https://github.com/D-Programming-Language/dmd/commit/22b1c0bbe66a0c28bdfe87e1e7cadffc4426a751 Merge pull request #5358 from WalterBright/fix15578.d fix Issue 15578 - Should have access to namespace private symbols fro…
Comment #4 by github-bugzilla — 2016-03-19T20:21:41Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/92e637e5f3b148c923aeeed3b401d6e628e0cf4e fix Issue 15578 - Should have access to namespace private symbols from same module https://github.com/D-Programming-Language/dmd/commit/22b1c0bbe66a0c28bdfe87e1e7cadffc4426a751 Merge pull request #5358 from WalterBright/fix15578.d