diff --git a/src/V3LinkParse.cpp b/src/V3LinkParse.cpp index 8e8089f9a..6ac2855ed 100644 --- a/src/V3LinkParse.cpp +++ b/src/V3LinkParse.cpp @@ -389,6 +389,7 @@ class LinkParseVisitor final : public VNVisitor { // Variables in static tasks with timing control can be used after the task has ended // with use of join..fork_none, so they need to be static if (m_ftaskp->lifetime().isStatic() && m_hasTimingControl) { + nodep->v3warn(IMPLICITSTATIC, "Variable's lifetime implicitly set to static because in static task with timing control."); nodep->lifetime(VLifetime::STATIC_IMPLICIT); } else { nodep->lifetime(VLifetime::AUTOMATIC_IMPLICIT); diff --git a/test_regress/t/t_fork_write_after_timing.py b/test_regress/t/t_fork_write_after_timing.py index 7ded63f3a..f3eeea08e 100755 --- a/test_regress/t/t_fork_write_after_timing.py +++ b/test_regress/t/t_fork_write_after_timing.py @@ -11,7 +11,7 @@ import vltest_bootstrap test.scenarios('simulator') -test.compile(verilator_flags2=["--binary"]) +test.compile(verilator_flags2=["--binary", "-Wno-implicitstatic"]) test.execute()