Bug 16294 – import treated as public import

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-07-19T00:59:25Z
Last change time
2018-01-25T11:36:46Z
Keywords
accepts-invalid
Assigned to
No Owner
Creator
Timothee Cour

Comments

Comment #0 by timothee.cour2 — 2016-07-19T00:59:25Z
This is inconsistent: version(with_import) should not affect visibility of symbol bar, given that we have 'import test3' but not 'public import test3' ---- dmd -c -o- -version=with_import main.d ok dmd -c -o- main.d test.d(2): Error: module test4 import 'bar' not found using DMD64 D Compiler v2.071.1 ---- main.d: import test; test.d: import test4:bar; test3.d: void bar(); test4.d: version(with_import) import test3;
Comment #1 by razvan.nitu1305 — 2018-01-25T11:36:46Z
This has been fixed by : https://github.com/dlang/dmd/pull/7760 . The code issues a deprecation now. Closing as fixed.