From 3a2c29c04b7b932f80e1ccb1c03573e8e803bf48 Mon Sep 17 00:00:00 2001 From: Kamil Danecki Date: Tue, 24 Mar 2026 10:11:01 +0100 Subject: [PATCH] Only in static tasks Signed-off-by: Kamil Danecki --- src/V3LinkParse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3LinkParse.cpp b/src/V3LinkParse.cpp index 61c95beb2..23811b13d 100644 --- a/src/V3LinkParse.cpp +++ b/src/V3LinkParse.cpp @@ -382,7 +382,7 @@ class LinkParseVisitor final : public VNVisitor { } } } else if (m_ftaskp) { - if (m_ftaskp->exists([&](const AstNode* nodep) {return nodep->isTimingControl();})) { + if (m_ftaskp->lifetime().isStatic() && m_ftaskp->exists([&](const AstNode* nodep) {return nodep->isTimingControl();})) { nodep->lifetime(VLifetime::STATIC_IMPLICIT); } else { nodep->lifetime(VLifetime::AUTOMATIC_IMPLICIT);