From 92f2ee18e728275266a1e83eb27699865df03873 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 30 Apr 2010 18:37:07 -0700 Subject: [PATCH] Call probe_expr_width() for repeat expression. The repeat expression is evaluated in a self determined context (expression width == -1). It needs to call probe_expr_width() to figure out the width needed by the expression before calling elab_and_eval() to elaborate the expression. --- elaborate.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/elaborate.cc b/elaborate.cc index 76ac4e1e9..cd04d55a8 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -3675,6 +3675,7 @@ NetProc* PRepeat::elaborate(Design*des, NetScope*scope) const { assert(scope); + probe_expr_width(des, scope, expr_); NetExpr*expr = elab_and_eval(des, scope, expr_, -1); if (expr == 0) { cerr << get_fileline() << ": Unable to elaborate"