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/5.v:2: syntax error
../../submit/5.v:2: error: Operand of reduction ^ is not a primary expression.
ivl: PExpr.cc:129: virtual void PEBinary::declare_implicit_nets(LexicalScope*, NetNet::Type): Assertion `left_ && right_' failed.
Aborted
Fixed in git master and v10-branch