do not write failed template instantiations or parts of these to the object file
Merge pull request #3074 from rainers/donot_write_failed_templates

no codegen for parts of failed template instantiations