fix Issue 12630 - @nogc should recognize compile-time evaluation context
Merge pull request #3493 from 9rnsr/fix12630

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