https://issues.dlang.org/show_bug.cgi?id=12503
--- Comment #3 from [email protected] --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ee659d780bcc2b2d6c29c3930cc122ff481e9465 Fix Issue 12503 - Bad optimization with scope(success) and return statement The current code only lists the finally block as a successor of the return statement when the return directly inside the finally's try block. https://github.com/D-Programming-Language/dmd/commit/426845f8efa66f85300fad45396666faf57b24e1 Merge pull request #3826 from yebblies/issue12503 Issue 12503 - Bad optimization with scope(success) and return statement --
