Fix class param static not found again error (#6768).

This commit is contained in:
Wilson Snyder
2025-12-08 20:11:28 -05:00
parent bd87dfc579
commit 29ae520e69
8 changed files with 73 additions and 3 deletions
+2
View File
@@ -391,6 +391,8 @@ private:
editDType(nodep);
classEncapCheck(nodep, nodep->varp(), VN_CAST(nodep->classOrPackagep(), Class));
if (nodep->access().isWriteOrRW()) varLifetimeCheck(nodep, nodep->varp());
if (VN_IS(nodep, VarRef))
nodep->name(""); // Clear to save memory; nodep->name() will work via nodep->varp()
}
void visit(AstAssign* nodep) override {
iterateChildren(nodep);