fix Issue 13675 - enum type used with template causes compiler to segfault
Merge pull request #4109 from 9rnsr/fix13675

[REG2.065] Issue 13675 - enum type used with template causes compiler to segfault