diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-11-23 12:20:36 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-11-23 12:20:36 +0100 |
commit | dd34ca9d5e79270fee191d476e07d8e2e63848a0 (patch) | |
tree | 756386e367bf339dddc6e6e7be2282fef6250548 /src | |
parent | 1ccba28394a88c1dfa22657bf3cc32b0ba2132c6 (diff) | |
download | ghdl-dd34ca9d5e79270fee191d476e07d8e2e63848a0.tar.gz ghdl-dd34ca9d5e79270fee191d476e07d8e2e63848a0.tar.bz2 ghdl-dd34ca9d5e79270fee191d476e07d8e2e63848a0.zip |
synth-expr: add strip_const for indexed names. Fix #1023
Diffstat (limited to 'src')
-rw-r--r-- | src/synth/synth-expr.adb | 1 |
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; |