aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/synth/synth-expr.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb
index 408845d3a..9bb95f66a 100644
--- a/src/synth/synth-expr.adb
+++ b/src/synth/synth-expr.adb
@@ -1071,6 +1071,7 @@ package body Synth.Expr is
Idx_Type := Get_Value_Type
(Syn_Inst, Get_Base_Type (Get_Type (Idx_Expr)));
Idx_Val := Synth_Expression_With_Type (Syn_Inst, Idx_Expr, Idx_Type);
+ Strip_Const (Idx_Val);
Get_Onedimensional_Array_Bounds (Pfx_Type, Bnd, El_Typ);
W := El_Typ.W;