fix Issue 10043 - ICE with __traits(compiles)
Merge pull request #1977 from 9rnsr/fix10043

[REG2.063a] Issue 10043 - ICE with __traits(compiles)