From e13a52637a8f06f558eaba81ea2e05a1de12a335 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 18 Aug 2015 16:21:09 -0700 Subject: [PATCH] A concatenation or the expression being replicated must have a non-zero width --- elab_expr.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elab_expr.cc b/elab_expr.cc index 5e479f6c1..fbaa0246b 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -2842,9 +2842,9 @@ NetExpr* PEConcat::elaborate_expr(Design*des, NetScope*scope, concat->set(idx, parms[off+idx]); } - if (wid_sum == 0 && concat_depth < 2) { - cerr << get_fileline() << ": error: Concatenation may not " - << "have zero width in this context." << endl; + if (wid_sum == 0) { + cerr << get_fileline() << ": error: Concatenation/replication " + << "may not have zero width in this context." << endl; des->errors += 1; concat_depth -= 1; delete concat;