November 17, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=549

           Summary: A class derived from a deprecated class is not caught
           Product: D
           Version: 0.174
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: smjg@iname.com


DMD allows you to derive a non-deprecated class from a deprecated class.  You can even instantiate the derived class, and use it to access the deprecated class's members, thereby bypassing the deprecation!

----------
import std.stdio;

deprecated class DepClass {
    void test() {
        writefln("Accessing what's deprecated!");
    }
}

class Derived : DepClass {}

void main() {
    Derived d = new Derived;
    d.test();
}
----------


-- 

October 10, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=549


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from smjg@iname.com  2007-10-09 20:29 -------
Fixed DMD 1.021, 2.005


--