[Issue 19816] New: adding import causes symbol lookup deperecation message in another module
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 22 06:42:16 UTC 2019
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 at puremagic.com
Reporter: r.sagitario at 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).
--
More information about the Digitalmars-d-bugs
mailing list