mirror of
https://github.com/verilator/verilator.git
synced 2025-01-10 00:27:35 +00:00
Fix member to method error messages.
This commit is contained in:
parent
3eb0ff8aa0
commit
62af9dbed4
@ -1576,7 +1576,8 @@ private:
|
||||
nodep->v3error("Member "<<nodep->prettyNameQ()<<" not found in structure");
|
||||
}
|
||||
}
|
||||
else if (VN_IS(fromDtp, EnumDType)) {
|
||||
else if (VN_IS(fromDtp, EnumDType)
|
||||
|| VN_IS(fromDtp, BasicDType)) {
|
||||
// Method call on enum without following parenthesis, e.g. "ENUM.next"
|
||||
// Convert this into a method call, and let that visitor figure out what to do next
|
||||
AstNode* newp = new AstMethodSel(nodep->fileline(),
|
||||
@ -2829,8 +2830,10 @@ private:
|
||||
//--------------------
|
||||
// Default
|
||||
virtual void visit(AstNodeMath* nodep) {
|
||||
nodep->v3fatalSrc("Visit function missing? Widthed function missing for math node: "
|
||||
<<nodep);
|
||||
if (!nodep->didWidth()) {
|
||||
nodep->v3fatalSrc("Visit function missing? Widthed function missing for math node: "
|
||||
<<nodep);
|
||||
}
|
||||
userIterateChildren(nodep, NULL);
|
||||
}
|
||||
virtual void visit(AstNode* nodep) {
|
||||
|
Loading…
Reference in New Issue
Block a user