diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index 3d3135014..bb721a2ee 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -115,6 +115,7 @@ void AstNodeUOrStructDType::repairMemberCache() { } const char* AstNodeUOrStructDType::broken() const { + BROKEN_RTN(m_classOrPackagep && !m_classOrPackagep->brokeExists()); std::unordered_set exists; for (AstMemberDType* itemp = membersp(); itemp; itemp = VN_AS(itemp->nextp(), MemberDType)) { exists.insert(itemp);