On Thursday, 7 April 2016 at 16:22:17 UTC, Daniel Murphy wrote:
If you have a patch I can probably point out the error. You're right that it should be fairly straightforward, although you'll need to copy elems to temps when they're used multiple times to avoid the multiple-references asserts/ICEs.
That's probably it, I'll try later today and let you know...