D-Programming-Language/dmd — pull request #503 by donc (2011-11-10 00:39:43+00:00)
Title: Add 'Out of memory' error to backend

The backend doesn't check the return value of 'realloc'. It should.

Context: I made a small change to CTFE, and it crashed running Phobos tests. I wasted a lot of time working out that it wasn't a segfault or a stack overflow, just an out of memory error.

BTW At present, Phobos unittests on Windows are very, very close to running out of memory. I think the cause is those std.datetime tests which were re-enabled.