https://issues.dlang.org/show_bug.cgi?id=8471 --- Comment #7 from Andrei Alexandrescu <andrei at erdani.com> --- Cool, thanks, then the bug is legit. The fix would be a @safe function with a small @trusted core. --