fix Issue 12376 - ICE with constarainted template instantiation with error gagging
Merge pull request #3382 from 9rnsr/fix12376

[REG2.066a] Issue 12376 - ICE with constarainted template instantiation with error gagging