mirror of
https://github.com/verilator/verilator.git
synced 2025-05-01 04:56:54 +00:00
Fix not iterating some extended classes depending on declaration order.
This commit is contained in:
parent
dc1f44840d
commit
b0cb43b2f2
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user