Bug 17434 – [REG: 2.073] import lookup ignores public import.

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-05-25T13:12:13Z
Last change time
2022-04-08T06:59:54Z
Keywords
pull
Assigned to
No Owner
Creator
Mike Wey

Attachments

IDFilenameSummaryContent-TypeSize
1647testcase.zipTest caseapplication/zip828

Comments

Comment #0 by mike — 2017-05-25T13:12:13Z
Created attachment 1647 Test case Since dmd version 2.073 the attached test case generates a deprecation warning: > $dmd *.d test/*.d > main.d(7): Deprecation: imp.test is not visible from module main Swapping the imports in imp.d so that the public import is listed first fixes the warning. This seems related to #15900.
Comment #1 by bugzilla — 2018-05-17T04:14:36Z
--------- imp.d ------------ module imp; private import test.test1; public import test.test2; --------- main.d ----------- module main; import imp; void main() { test.test2.testing(); } --------- test/test1.d ------- module test.test1; --------- test/test2.d ------- module test.test2; void testing() { return; }
Comment #2 by dlang-bot — 2022-03-31T14:53:16Z
@RazvanN7 updated dlang/dmd pull request #13934 "Fix Issue 17434 - [REG: 2.073] import lookup ignores public import." fixing this issue: - Fix Issue 17434 - [REG: 2.073] import lookup ignores public import. https://github.com/dlang/dmd/pull/13934
Comment #3 by dlang-bot — 2022-03-31T18:13:28Z
dlang/dmd pull request #13934 "Fix Issue 17434 - [REG: 2.073] import lookup ignores public import." was merged into stable: - b1078a9d28538c9b65933c9115141ee5a893536c by RazvanN7: Fix Issue 17434 - [REG: 2.073] import lookup ignores public import. https://github.com/dlang/dmd/pull/13934
Comment #4 by dlang-bot — 2022-04-08T06:59:54Z
dlang/dmd pull request #13962 "merge stable" was merged into master: - 0f4d152e06630418a315dbb62e0824dd6eb1972d by Razvan Nitu: Fix Issue 17434 - [REG: 2.073] import lookup ignores public import. (#13934) Fix Issue 17434 - [REG: 2.073] import lookup ignores public import. Signed-off-by: Dennis <[email protected]> Merged-on-behalf-of: Dennis <[email protected]> https://github.com/dlang/dmd/pull/13962