[Issue 14559] New: No warnings when calling deprecated function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 8 11:58:14 PDT 2015


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

Regards!

--


More information about the Digitalmars-d-bugs mailing list