Issue 12630 - @nogc should recognize compile-time evaluation context

https://issues.dlang.org/show_bug.cgi?id=12630