diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index f6e4c97fb..61bb446ca 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -3075,8 +3075,9 @@ private: = foundp ? VN_CAST(foundp->nodep(), NodeFTask) : nullptr; // Maybe nullptr if (taskp) { if (staticAccess && !taskp->lifetime().isStatic()) { - nodep->v3error("Static access to non-static task/function " - << taskp->prettyNameQ() << endl); + // TODO bug4077 + // nodep->v3error("Static access to non-static task/function " + // << taskp->prettyNameQ() << endl); } nodep->taskp(taskp); nodep->classOrPackagep(foundp->classOrPackagep()); diff --git a/test_regress/t/t_class_member_bad3.out b/test_regress/t/t_class_member_bad3.out index 4712e0838..aadcca95d 100644 --- a/test_regress/t/t_class_member_bad3.out +++ b/test_regress/t/t_class_member_bad3.out @@ -1,7 +1,4 @@ %Error: t/t_class_member_bad3.v:16:12: Static access to non-static member variable 'member' 16 | Foo::member = 1; | ^~~~~~ -%Error: t/t_class_member_bad3.v:17:12: Static access to non-static task/function 'method' - 17 | Foo::method(); - | ^~~~~~ %Error: Exiting due to