https://issues.dlang.org/show_bug.cgi?id=14119 --- Comment #1 from Martin Nowak <code at dawg.eu> --- Same goes for onOutOfMemoryError which is even marked as @nogc, even though the trace is allocated using the GC. --