From 8ee53a8e80623dc21102f30b23652bf6068608c3 Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Mon, 19 Jan 2026 16:31:35 +0100 Subject: [PATCH] Fix handling of force assignments to real dtype vars Signed-off-by: Ryszard Rozak --- src/V3Force.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Force.cpp b/src/V3Force.cpp index 7cd8887ad..c6306ef08 100644 --- a/src/V3Force.cpp +++ b/src/V3Force.cpp @@ -184,7 +184,7 @@ public: static int cnt = 0; FileLine* const flp = lhsp->fileline(); const AstNodeDType* const lhsDtypep = lhsp->dtypep()->skipRefp(); - if (lhsDtypep->isIntegralOrPacked()) { + if (lhsDtypep->isIntegralOrPacked() || VN_IS(lhsDtypep, BasicDType)) { return new AstAssign{flp, lhsp, forcedUpdate(vscp, lhsp, lhsVarRefp)}; } else if (const AstStructDType* const structDtypep = VN_CAST(lhsDtypep, StructDType)) {