A concatenation or the expression being replicated must have a non-zero width

This commit is contained in:
Cary R 2015-08-18 16:21:09 -07:00
parent 9f4b485c1c
commit e682029648
1 changed files with 3 additions and 3 deletions

View File

@ -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;