diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 08ea024a3..4bb7da94d 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -2892,6 +2892,7 @@ private: } else { nodep->taskp(ftaskp); nodep->dtypeFrom(ftaskp); + nodep->classOrPackagep(classp); if (VN_IS(ftaskp, Task)) nodep->makeStatement(); } return;