https://issues.dlang.org/show_bug.cgi?id=15247
Issue ID: 15247 Summary: Object's destructor should be pure @safe nothrow @nogc Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: and...@erdani.com The destructor of Object does nothing so it should not be maximally conservative (as is today). User-defined classes should inherit the pure @safe nothrow @nogc attributes for destructor. If a user-defined class includes fields that have destructors, the generated destructor will also generate the attributes appropriately. --