From 62af9dbed492e69abfe8c6a015d568e964feba15 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 16 Nov 2019 15:32:55 -0500 Subject: [PATCH] Fix member to method error messages. --- src/V3Width.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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: " + <