From 32fab21e95e1f33deac1b720cd91214b8fa31eb2 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 7 Jan 2016 11:11:04 +0100 Subject: [PATCH] ivl: Allow concatenating strings returned by function calls. --- elab_expr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elab_expr.cc b/elab_expr.cc index cb0be36ca..d4394c1cc 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -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;