fix Issue 12287 - infinite loop on std.traits.moduleName on templated struct member
Merge pull request #1978 from 9rnsr/fix12287

Issue 12287 - infinite loop on std.traits.moduleName on templated struct member