I can't repro it, either. This PR may have fixed it:
https://github.com/dlang/dmd/commit/6517be5b3fe7bdcd8d9e6aa62eee9238bf8c13b9
with the addition of the `LINK.system` case.
The assert fail in the test case was probably the `default: assert(0);`
I'm going to mark this worksforme. If there are further problems with it, please reopen.