forked from github/verilator
parent
3219ffddd4
commit
86156dd05b
@ -2670,8 +2670,9 @@ private:
|
||||
}
|
||||
} else {
|
||||
if (staticAccess && !varp->lifetime().isStatic() && !varp->isParam()) {
|
||||
nodep->v3error("Static access to non-static member variable "
|
||||
<< varp->prettyNameQ() << endl);
|
||||
// TODO bug4077
|
||||
// nodep->v3error("Static access to non-static member variable "
|
||||
// << varp->prettyNameQ() << endl);
|
||||
}
|
||||
AstVarRef* const refp = new AstVarRef{
|
||||
nodep->fileline(), varp, VAccess::READ}; // lvalue'ness computed later
|
||||
|
@ -1,4 +1,7 @@
|
||||
%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
|
||||
|
@ -11,8 +11,8 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
|
||||
scenarios(linter => 1);
|
||||
|
||||
lint(
|
||||
fails => 1,
|
||||
expect_filename => $Self->{golden_filename},
|
||||
# fails => 1, # TODO bug4077
|
||||
# expect_filename => $Self->{golden_filename},
|
||||
);
|
||||
|
||||
ok(1);
|
||||
|
Loading…
Reference in New Issue
Block a user