mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user