From 50a2f553647675a7ef54d3057cc09901007da94a Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 5 Oct 2011 09:49:00 -0700 Subject: [PATCH] Define the mode when testing the width of a wait statement argument. If a wait statement has a constant argument then the mode must be defined before test_width() is called since the current mode is used in the PENumber test_width routine. --- elaborate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elaborate.cc b/elaborate.cc index 28384e005..42acbea88 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -3500,7 +3500,7 @@ NetProc* PEventStatement::elaborate_wait(Design*des, NetScope*scope, /* Elaborate wait expression. Don't eval yet, we will do that shortly, after we apply a reduction or. */ - PExpr::width_mode_t mode; + PExpr::width_mode_t mode = PExpr::SIZED; pe->test_width(des, scope, mode); NetExpr*expr = pe->elaborate_expr(des, scope, pe->expr_width(), PExpr::NO_FLAGS);