https://issues.dlang.org/show_bug.cgi?id=18267 --- Comment #2 from Atila Neves <atila.neves at gmail.com> --- If it's marked as `@safe` then `pure` is still an issue. At least with the very reduced example. I think the specifics depend on the code being compiled. --