I got an assertion failure when I ran iverilog t.v on the attached file.
t.v.txt
Expected behavior: an error message instead of a failure.
Full error:
Assertion failed: (ivl_stmt_lvals(net) == 1), function force_link_rval, file vvp_process.c, line 1008.
sh: line 1: 56097 Done /opt/local/lib/ivl/ivlpp -L -F"/var/folders/y0/std_yssd13z9snh48rx3m8l40000gq/T//ivrlg23831d039" -f"/var/folders/y0/std_yssd13z9snh48rx3m8l40000gq/T//ivrlg3831d039" -p"/var/folders/y0/std_yssd13z9snh48rx3m8l40000gq/T//ivrli3831d039"
56098 Abort trap: 6 | /opt/local/lib/ivl/ivl -C"/var/folders/y0/std_yssd13z9snh48rx3m8l40000gq/T//ivrlh3831d039" -C"/opt/local/lib/ivl/vvp.conf" -- -
I'm using Icarus Verilog version 13.0 (devel) (s20250103) on a MacBook, installed through macports.
I'm not expecting a fix for this, just letting you know in case it is helpful, so feel free to close the issue.