diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 9e6bd34f8..532639c81 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -1576,7 +1576,8 @@ private: nodep->v3error("Member "<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: " - <didWidth()) { + nodep->v3fatalSrc("Visit function missing? Widthed function missing for math node: " + <