Add error on missing forward declarations (#6207).

This commit is contained in:
Wilson Snyder
2025-07-26 17:11:35 -04:00
parent d8dbb08a95
commit f3560837ec
16 changed files with 234 additions and 33 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ AstVar* V3ParseGrammar::createVariable(FileLine* fileline, const string& name,
}
if (VN_IS(dtypep, ParseTypeDType)) {
// Parser needs to know what is a type
AstNode* const newp = new AstTypedefFwd{fileline, name};
AstNode* const newp = new AstTypedefFwd{fileline, name, VFwdType::NONE};
AstNode::addNext<AstNode, AstNode>(nodep, newp);
}
// Don't set dtypep in the ranging;