add semantics for @nogc
Merge pull request #3490 from WalterBright/more-nogc

DIP60: add semantics for @nogc
fix Issue 12622 - Purity, @safe not checked for pointers to functions