Bug 11038 – static has no effect as a block attribute for imports

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-14T06:44:33Z
Last change time
2021-04-03T01:03:35Z
Keywords
pull
Assigned to
No Owner
Creator
Andrej Mitrovic

Comments

Comment #0 by andrej.mitrovich — 2013-09-14T06:44:33Z
Some attributes, such as public, can be used to mark several imports as public, for example: ----- module bar; public { import std.range; import std.stdio; } ----- ----- module test; import bar; void main() { writeln("foo".empty); } ----- This compiles. However static does not have an effect on imports: ----- module test; static { import std.range; import std.stdio; } void main() { writeln("foo".empty); // compiles } -----
Comment #1 by dlang-bot — 2019-11-06T11:57:04Z
@RazvanN7 created dlang/dmd pull request #10541 "Fix Issue 11038 - static has no effect as a block attribute for imports" fixing this issue: - Fix Issue 11038 - static has no effect as a block attribute for imports https://github.com/dlang/dmd/pull/10541
Comment #2 by dlang-bot — 2019-11-18T11:20:09Z
dlang/dmd pull request #10541 "Fix Issue 11038 - static has no effect as a block attribute for imports" was merged into master: - 08808ba15882d75dc5c2ca911db29150413181e8 by RazvanN7: Fix Issue 11038 - static has no effect as a block attribute for imports https://github.com/dlang/dmd/pull/10541
Comment #3 by dlang-bot — 2021-04-03T01:03:35Z
dlang/dmd pull request #12350 "[dmd-cxx] More fixes for package import visibility" was merged into dmd-cxx: - 4e43ce774bea36cc87fc6df027ab8a65f9db48a5 by RazvanN7: [dmd-cxx] Fix Issue 11038 - static has no effect as a block attribute for imports https://github.com/dlang/dmd/pull/12350