D-Programming-Language/phobos — pull request #314 by NilsBossung (2011-11-03 21:59:28+00:00)
Title: (bugzilla 6874) disable the broken optimized path and fall back to append

(bugzilla 6874) disable the broken optimized path and fall back to appender

Also add a unittest.
This doesn't properly resolve the issue, of course.

http://d.puremagic.com/issues/show_bug.cgi?id=6874

I'm not so confident of the unittest's quality. Someone should have a look at that. I feel like it could be much simpler. And I suspect that the array length could take up more than 1 byte on another compiler/machine, but I couldn't find anything on that.