Bug 17498 – Double error message about use of private

Status
RESOLVED
Resolution
WONTFIX
Severity
trivial
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-13T18:53:35Z
Last change time
2017-10-27T13:56:33Z
Keywords
diagnostic
Assigned to
No Owner
Creator
Eyal

Comments

Comment #0 by eyal — 2017-06-13T18:53:35Z
When module b tries to use a private member f of module a, dmd complains thusly: b.d: Deprecation: a.f is not visible from module b b.d: Error: function a.f is not accessible from module b The deprecation is not needed in this case.
Comment #1 by code — 2017-10-27T13:56:33Z
The access check will be removed once visibility has become an error. https://github.com/dlang/dmd/pull/7241 We tried to minimize overlap, but some cases weren't that easy to avoid.