From a446c34d10c1ff7bf02962e4bb2ec9b26dd3b1c1 Mon Sep 17 00:00:00 2001 From: Cary R Date: Sat, 30 Jan 2021 00:39:14 -0800 Subject: [PATCH] Fix down parameter out of bound message --- elab_expr.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/elab_expr.cc b/elab_expr.cc index e28bd6a8b..8aa97435c 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -5215,8 +5215,10 @@ static void warn_param_ob(long par_msv, long par_lsv, bool defined, /* Is this a select after the end of the parameter? */ if (par_base + (long)wid - 1 > par_max) { cerr << info->get_fileline() << ": warning: " << name << "[" - << par_base << "+:" << wid << "] is selecting after vector." - << endl; + << par_base; + if (up) cerr << "+:"; + else cerr << "-:"; + cerr << wid << "] is selecting after vector." << endl; } }