Fix hierarchical references used inside a function (#2267) (#2572)

This commit is contained in:
James Pallister
2020-09-27 10:10:44 -04:00
committed by GitHub
parent 4ba2637360
commit e3a1954e20
4 changed files with 71 additions and 1 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ private:
}
virtual void visit(AstVarXRef* nodep) override {
UINFO(9, " VARXREF " << nodep << endl);
if (m_namedScope != "" && nodep->inlinedDots() == "") {
if (m_namedScope != "" && nodep->inlinedDots() == "" && !m_ftaskp) {
nodep->inlinedDots(m_namedScope);
UINFO(9, " rescope to " << nodep << endl);
}