https://issues.dlang.org/show_bug.cgi?id=14559
Issue ID: 14559
Summary: No warnings when calling deprecated function
Product: D
Version: D2
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
Created attachment 1519
--> https://issues.dlang.org/attachment.cgi?id=1519&action=edit
A source file demonstrating the issue
Hi there!
Not sure if it's a bug. Nevertheless i found that one can easily call
deprecated function with non-direct way. For example one can assume the address
of such function to a pointer. So the compiler produces no warnings when
calling deprecated function via the pointer. It also works with threads. I mean
you can merely use a pointer to deprecated function as a thread-callee with the
'spawn' function from the std.concurrency module.
Regards!
--