Commit b7d80418 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix bug exposed by specialization and declaration code caching.

parent bcc15b5d
......@@ -3152,9 +3152,9 @@ class CppClassType(CType):
# Need to do these *after* self.specializations[key] is set
# to avoid infinite recursion on circular references.
specialized.base_classes = [b.specialize(values) for b in self.base_classes]
specialized.scope = self.scope.specialize(values, specialized)
if self.namespace is not None:
specialized.namespace = self.namespace.specialize(values)
specialized.scope = self.scope.specialize(values, specialized)
return specialized
def deduce_template_params(self, actual):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment