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

https://d.puremagic.com/issues/show_bug.cgi?id=12376

Introduced by: #3332