You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
%Error: 7.sv:16: Unsupported: Member call on non-enum object 'VARREF 'j'' which is a 'BASICDTYPE 'integer''
: ... In instance t
j.e(0),
^
Segmentation fault (core dumped)
I think there are two different problems here:
Shouldn't the "j" be inaccessible at all because it should only exist in the scope of the generate block in which it's defined?
Even if "j" is switched to be declared within the module as "integer j;" the segfault still persists.
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Eric Rippey
Original Date: 2019-11-06T00:35:26Z
Regarding the scope: that's interesting. I think you're right but it took me longer to confirm that than I expected. I didn't find anything definitive either way in the standard, and so I tried running:
with ModelSim and it choked because it didn't want to let the genvar be accessible there. Then I tried iverilog and it choked because it couldn't handle printing a genvar at all. And then I tried:
Author Name: Eric Rippey
Original Redmine Issue: 1589 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
Running the attached testcase with:
verilator_bin --lint-only 7.sv
On version:
Verilator 4.020 devel rev v4.020-56-gbcb766b
Produces:
I think there are two different problems here:
The text was updated successfully, but these errors were encountered: