I am getting a nonsensical deprecation telling me to add static import foo.bar; when it's right there already dmd version: DMD64 D Compiler v2.070-devel-36feb02 (but due to another bug I reported it's actually the latest 2.071) ... static import foo.bar; class Foo(T...) if(foo.bar.fun!(foo.bar.baz!(int), T)) { ...} // deprecation msg ...
[unfortunately seems hard to reduce]
perhaps related to issue/15900 ?
slightly different scenario but could be same root cause, with a minimal test case: $dmd_071_X -o- -c D20160409T132716/main.d Deprecation: module std.conv is not accessible here, perhaps add 'static import std.conv;' ---- module D20160409T132716.main; import D20160409T132716.test; void fun(){ auto b=std.conv.to!string(0); } ---- module D20160409T132716.test; public static import std.conv; ----
Same problem after loading up some library code that worked in 2.68. I have several compiler problems now: Deprecation: module std.traits is not accessible here, perhaps add 'static import std.traits;' same for std.algorithm. Of course, std.traits is already imported. mixin(1) Deprecation: Foo.min is not visible from module Bar min is suppose to be standard Math.min. Used to work fine, now it's not "visible". Same for max.
Issue 15900 got fixed in 2.071.2-b1, could you please retest.
Can't reproduce the issues of comment 0 and comment 4, please retest and provide a complete test case. Comment 3 is clearly a duplicate of issue 15000.
(In reply to Martin Nowak from comment #6) > Comment 3 is clearly a duplicate of issue 15000. issue 15900
Any reasons this issue shouldn't be closed? The issue this was suspected to duplicate was marked as resolved, and I can't reproduce Comment 3 on DMD v2.073.0. (Just trying to help dlang cut through the 2,984 open DMD issues. They add up :))
Seems to be fixed. Reopen if not.