D-Programming-Language/druntime — pull request #753 by rainers (2014-03-23 10:28:05+00:00)
Title: Workaround 11461: avoid strict purity inference by passing null pointer to onOutOfMemoryError

As discussed in https://d.puremagic.com/issues/show_bug.cgi?id=11461, this seems the better workaround as it allows keeping the pure attribute.
I added the same to onInvalidMemorypertionError, it suffered from the same issue.