Add warning on missing class reference #()

This commit is contained in:
Wilson Snyder
2023-03-03 21:06:52 -05:00
parent ab502c5196
commit e21198cb2d
8 changed files with 85 additions and 17 deletions
+1
View File
@@ -225,6 +225,7 @@ private:
if (nodep->lifetime().isNone() && nodep->varType() != VVarType::PORT) {
nodep->lifetime(m_lifetime);
}
if (nodep->isGParam() && m_modp) m_modp->hasGParam(true);
if (nodep->isParam() && !nodep->valuep()
&& nodep->fileline()->language() < V3LangCode::L1800_2009) {
nodep->v3error("Parameter requires default value, or use IEEE 1800-2009 or later.");