www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14559] New: No warnings when calling deprecated function


          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: nobody puremagic.com
          Reporter: v-domrachev ya.ru

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.


May 08 2015