From 7d10e473dfa5ef57cdb4bdb829ca68dae75f7a32 Mon Sep 17 00:00:00 2001 From: Pawel Kojma Date: Wed, 11 Feb 2026 13:31:49 +0100 Subject: [PATCH] Filter for params Signed-off-by: Pawel Kojma --- src/V3LinkResolve.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/V3LinkResolve.cpp b/src/V3LinkResolve.cpp index 702c68f09..8dc362635 100644 --- a/src/V3LinkResolve.cpp +++ b/src/V3LinkResolve.cpp @@ -27,7 +27,6 @@ #include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT #include "V3LinkResolve.h" - #include "V3String.h" #include "V3Task.h" @@ -73,8 +72,9 @@ class LinkResolveVisitor final : public VNVisitor { void visit(AstClass* nodep) override { VL_RESTORER(m_classp); m_classp = nodep; - nodep->foreachMember( - [&](AstClass* const, AstVar* const varp) { varp->varType(VVarType::MEMBER); }); + nodep->foreachMember([&](AstClass* const, AstVar* const varp) { + if (!varp->isParam()) varp->varType(VVarType::MEMBER); + }); iterateChildren(nodep); } void visit(AstConstraint* nodep) override {