April 22, 2019 [Issue 19816] New: adding import causes symbol lookup deperecation message in another module | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19816 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; --- yields 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). -- |
Copyright © 1999-2021 by the D Language Foundation