Fix not iterating some extended classes depending on declaration order.

This commit is contained in:
Wilson Snyder 2020-11-24 21:41:32 -05:00
parent dc1f44840d
commit b0cb43b2f2

View File

@ -2203,6 +2203,9 @@ private:
}
virtual void visit(AstClass* nodep) override {
if (nodep->didWidthAndSet()) return;
// Must do extends first, as we may in functions under this class
// start following a tree of extends that takes us to other classes
userIterateAndNext(nodep->extendsp(), nullptr);
userIterateChildren(nodep, nullptr); // First size all members
nodep->repairCache();
}