forked from github/verilator
parent
9ffd0a4e70
commit
3a01c32bf9
@ -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());
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user