ivl: Allow concatenating strings returned by function calls.

This commit is contained in:
Maciej Suminski 2016-01-07 11:11:04 +01:00
parent ba274936e5
commit 32fab21e95
1 changed files with 1 additions and 1 deletions

View File

@ -2838,7 +2838,7 @@ NetExpr* PEConcat::elaborate_expr(Design*des, NetScope*scope,
concat->set(idx, parms[off+idx]);
}
if (wid_sum == 0) {
if (wid_sum == 0 && expr_type_ != IVL_VT_STRING) {
cerr << get_fileline() << ": error: Concatenation/replication "
<< "may not have zero width in this context." << endl;
des->errors += 1;