diff --git a/src/V3CCtors.cpp b/src/V3CCtors.cpp index 9724e6bc5..68bfb493d 100644 --- a/src/V3CCtors.cpp +++ b/src/V3CCtors.cpp @@ -203,6 +203,8 @@ class CCtorsVisitor final : public VNVisitor { m_varResetp->add(crstp); } else if (m_cfuncp) { nodep->addNextHere(crstp); + } else { + nodep->v3fatalSrc("Var needs CReset but nowhere to place it"); } } }