D-Programming-Language/druntime — pull request #332 by AndrejMitrovic (2012-10-22 03:12:09+00:00)
Title: Fix Issue 3851 - Array copy error message

Druntime already had some printing enabled, but only for assignments. Also, it relied on reusing the same buffer during concatenation, but this was buggy because this:

```d
void main() {
auto a1 = new int[5];
auto a2 = new int[4];
a1[] = a2;
}
```

would print:
`object.Error: lengths don't match for array copy, 5 = 5`

It's probably caused by re-using the tmp variable in concatenating the message string, so I've replaced that and we're using two buffers now.