www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19816] New: adding import causes symbol lookup deperecation


          Issue ID: 19816
           Summary: adding import causes symbol lookup deperecation
                    message in another module
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

Isolated from a failure in https://github.com/dlang/druntime/pull/2570:

If compiling these files

--- process.d
import std.windows.syserror;
import thread;
import std.file;

--- thread.d
import core.sys.windows.windows;
HMODULE dllModule;


phobos\std\internal\windows\advapi32.d(32): Deprecation:
core.sys.windows.windef.DECLARE_HANDLE!("HMODULE", void*).HMODULE is not
visible from module advapi32

Removing imports or changing the order of imports in std.process makes the
message disappear.

I suspect this happens with package protection somehow getting invalid when
seen through a public import.

I've tried to dustmite the issue further, but that moves the problem elsewhere
(due to removed module names).

Apr 21 2019