fix Issue 6539 - Incomprehensible error message with failed template instantiation
Merge pull request #1661 from 9rnsr/fix6539

Issue 6539 - Incomprehensible error message with failed template instantiation