Fix copy constructor of classes with constraints (#8381)

This commit is contained in:
Ryszard Rozak
2026-09-18 07:47:25 -04:00
committed by GitHub
parent 5f38b797f3
commit c25f287779
10 changed files with 537 additions and 15 deletions
+2 -1
View File
@@ -1383,7 +1383,8 @@ class TaskVisitor final : public VNVisitor {
if (cfuncp->dpiImportWrapper()) cfuncp->cname(nodep->cname());
const bool needSyms
= (!nodep->dpiImport() && !nodep->taskPublic()) || v3Global.opt.profExec();
= nodep->needsSyms()
&& ((!nodep->dpiImport() && !nodep->taskPublic()) || v3Global.opt.profExec());
if (needSyms) cfuncp->argTypes(EmitCUtil::symClassVar());
if (!nodep->dpiImport() && !nodep->taskPublic()) {