Fix GCC-8 compile error.

This commit is contained in:
Wilson Snyder 2018-03-17 11:33:47 -04:00
parent 38261ac649
commit 3963fe4384

View File

@ -53,8 +53,9 @@ private:
// TYPES
typedef vl_unordered_map<AstPackage*, AstScope*> PackageScopeMap;
typedef vl_unordered_map<pair<AstVar*, AstScope*>, AstVarScope*> VarScopeMap;
typedef vl_unordered_set<pair<AstVarRef*, AstScope*> > VarRefScopeSet;
// These cannot be unordered unless make a specialized hashing pair (gcc-8)
typedef std::map<std::pair<AstVar*, AstScope*>, AstVarScope*> VarScopeMap;
typedef std::set<std::pair<AstVarRef*, AstScope*> > VarRefScopeSet;
// STATE, inside processing a single module
AstNodeModule* m_modp; // Current module