[Issue 17906] Deprecated functions should not cause deprecated warnings for using deprecated features

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 21 18:54:45 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=17906

Mathias Lang <mathias.lang at sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mathias.lang at sociomantic.co
                   |                            |m

--- Comment #1 from Mathias Lang <mathias.lang at sociomantic.com> ---
Yeah, put simply, the following code:
```
deprecated void main ()
{
    Object o = new Object;
    delete o;
}
```

should compile with `dmd -de test.d` (DMD v2.079)

Currently this is done for other deprecated symbols: deprecated functions can
call other deprecated functions, use deprecated types, and a deprecated
aggregate can have fields of deprecated types... So it should be done for
language deprecations as well.

--


More information about the Digitalmars-d-bugs mailing list