fix Issue 11849 - Recursive enum causes segfault
Fix ice with recursive definition of enum base type
fix Issue 11844 - ICE(template.c:6643) Assertion failed: (td->semanticRun != PASSinit)
Merge pull request #3056 from 9rnsr/fix11844

Issue 11844 - ICE(template.c:6643) Assertion failed: (td->semanticRun != PASSinit)
Merge pull request #3057 from 9rnsr/fix11849

Issue 11849 - Recursive enum causes segfault