In the meantime I've submitted a pull to fix this issue https://github.com/D-Programming-Language/dmd/pull/3424.