vlog95: Warn that array patterns cannot be converted.

This commit is contained in:
Cary R 2013-10-22 14:26:18 -07:00
parent d7c2118d10
commit 3c7d7a7856
1 changed files with 8 additions and 0 deletions

View File

@ -1132,6 +1132,14 @@ void emit_expr(ivl_scope_t scope, ivl_expr_t expr, unsigned wid,
case IVL_EX_ARRAY:
emit_expr_array(scope, expr, wid);
break;
case IVL_EX_ARRAY_PATTERN:
fprintf(vlog_out, "<array pattern>");
fprintf(stderr, "%s:%u: vlog95 error: Array pattern expressions "
"are not supported.\n",
ivl_expr_file(expr),
ivl_expr_lineno(expr));
vlog_errors += 1;
break;
case IVL_EX_BINARY:
emit_expr_binary(scope, expr, wid, is_full_prec);
break;