The compiler hits an assert on the attached testcase.
Linux x86_64
g++ (Ubuntu 7.4.0-9ubuntu1~18.04.york0) 7.4.0
iverilog latest from git
Output:
../../submit/7.v:1: syntax error
../../submit/7.v:1: error: invalid module item.
../../submit/7.v:2: syntax error
../../submit/7.v:2: error: invalid module item.
../../submit/7.v:3: syntax error
../../submit/7.v:2: error: Syntax error in instance port expression(s).
ivl: pform.cc:2231: void pform_make_modgates(const vlltype&, perm_string, parmvalue_t, svector<lgate></lgate>, std::__cxx11::list<named\<pexpr*> >*): Assertion `! pform_cur_module.empty()' failed.
Aborted</named\<pexpr*>
Fixed (replaced with an "internal error" error message) in master and v10-branch.