fixed different names of same arrays in common
This commit is contained in:
@@ -542,6 +542,22 @@ namespace Distribution
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Symbol* GetDeclSymbol(const PAIR<STRING, int>& position_decl) const
|
||||
{
|
||||
if (!IsArray() || locationPos.first != l_COMMON)
|
||||
return declSymbol;
|
||||
|
||||
auto it = declPlacesSymbol.find(position_decl);
|
||||
if (it == declPlacesSymbol.end())
|
||||
{
|
||||
#if __SPF
|
||||
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
return it->second;
|
||||
}
|
||||
|
||||
Symbol* GetDeclSymbol() const { return declSymbol; }
|
||||
void SetDeclSymbol(Symbol *s) { declSymbol = s; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user