mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Add error on missing forward declarations (#6207).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user