static ~this() nothrow pure @safe { } Error: semicolon expected following function declaration
https://github.com/D-Programming-Language/dmd/pull/2460
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a0ec7d49ec19a247e12f7fdc939d11ca1ff8a91b fix issue 10787 - static ~this attributes position https://github.com/D-Programming-Language/dmd/commit/39554724b25513bd3e21ba1795fb61eead4cb850 Merge pull request #2460 from hpohl/10787 fix issue 10787 - static ~this attributes position
I'm not sure it's fixed. See comments here: https://github.com/D-Programming-Language/dmd/pull/2460
The presented test case passes, so it is fixed. If there are other known cases please post them and reopen or (preferred) open a new bug report for them.
This is not fixed completely, Andrei pulled a bit too fast. Take a look at my comment: https://github.com/D-Programming-Language/dmd/pull/2460
Fixed by: https://github.com/dlang/dmd/pull/3612