Disable the cacheing of template instantiations.

This commit is contained in:
Roberto Raggi
2010-05-31 12:36:30 +02:00
parent e9c43b3ec6
commit cca38a737e

View File

@@ -521,11 +521,6 @@ ClassOrNamespace *ClassOrNamespace::nestedType(const Name *name) const
ClassOrNamespace *c = it->second;
if (const TemplateNameId *templId = name->asTemplateNameId()) {
foreach (ClassOrNamespace *i, c->_instantiations) {
if (i->_templateId && templId->isEqualTo(i->_templateId))
return i;
}
ClassOrNamespace *i = _factory->allocClassOrNamespace(c);
i->_templateId = templId;
i->_usings.append(c);