https://issues.dlang.org/show_bug.cgi?id=12954
--- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f04dc8b916ccd3e3139ce4192d2365597614e77b Fix issue 12954 - Deprecated only works with string literals Allow code to use `enum` and `static {immutable,const}` for the deprecation message. This will allow for more dynamic deprecation message (e.g. with release informations). It purposedly doesn't support direct function call to get the deprecation message. https://github.com/D-Programming-Language/dmd/commit/96b883ab81d10cd75dcd5d129c15bfb31cd55c7d Merge pull request #5302 from Geod24/fix-12954 Fix issue 12954 - Deprecated only works with string literals --