Ensure symbol tables are created with unique names.

This commit is contained in:
Mike Auty
2017-07-31 16:34:02 +01:00
parent d119f372dc
commit 5e9b2306d4
@@ -587,7 +587,10 @@ class SymbolRequirement(ConstructableRequirementInterface):
# Determine the space name
name = self.name
if name in context.symbol_space:
raise ValueError("Symbol space already contains a SymbolTable by the same name")
index = 2
while name in context.symbol_space:
name = self.name + str(index)
index += 1
config_path = path_join(config_path, self.name)
args = {"context": context,