Merge pull request #3098 from 9rnsr/fix11926

Issue 11926 - Segmentation fault when using const in an enum
[Refactoring] Add `TemplateDeclaration::evaluateConstaint`
fix Issue 10133 - ICE for templated static conditional lambda

Evaluate template constraint under the emulated instantiation scope.
Relax restrictions on issue 6538 and 9361

Now pseudo symbols are placed in emulated scopes, and taking them by alias parameter is allowed.