aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-11-23 12:20:36 +0100
committerTristan Gingold <tgingold@free.fr>2019-11-23 12:20:36 +0100
commitdd34ca9d5e79270fee191d476e07d8e2e63848a0 (patch)
tree756386e367bf339dddc6e6e7be2282fef6250548
parent1ccba28394a88c1dfa22657bf3cc32b0ba2132c6 (diff)
downloadghdl-dd34ca9d5e79270fee191d476e07d8e2e63848a0.tar.gz
ghdl-dd34ca9d5e79270fee191d476e07d8e2e63848a0.tar.bz2
ghdl-dd34ca9d5e79270fee191d476e07d8e2e63848a0.zip
synth-expr: add strip_const for indexed names. Fix #1023
-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;