Fix clocking block scope internal error (#4032).

This commit is contained in:
Wilson Snyder 2023-03-16 20:48:18 -04:00
parent d1b55cb7aa
commit 51ba4a1531
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ Verilator 5.009 devel
* Fix UNDRIVEN warning seg fault (#3989). [Felix Neumärker]
* Fix symbol entries when inheriting classes (#3995) (#3996). [Krzysztof Boroński]
* Fix push to dynamic queue in struct (#4015). [ezchi]
* Fix clocking block scope internal error (#4032). [Srinivasan Venkataramanan]
* Fix false ENUMVALUE on expressions and arrays.

View File

@ -255,7 +255,7 @@ private:
iterateChildren(nodep);
if (nodep->varsp()) m_scopep->modp()->addStmtsp(nodep->varsp()->unlinkFrBackWithNext());
if (nodep->eventp()) m_scopep->modp()->addStmtsp(nodep->eventp()->unlinkFrBack());
VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep);
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
}
void visit(AstNodeFTask* nodep) override {
// Add to list of blocks under this scope