diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-08-06 03:16:45 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-08-06 03:16:45 +0200 |
commit | 8786de9225898c14fd6a24ff1864aea098650a6d (patch) | |
tree | adf8ad1b6a427d409cc2515be7ab2b9a09994221 /src | |
parent | 9e421ddc712d8c3346604ac36a0a83419ad9464c (diff) | |
download | ghdl-8786de9225898c14fd6a24ff1864aea098650a6d.tar.gz ghdl-8786de9225898c14fd6a24ff1864aea098650a6d.tar.bz2 ghdl-8786de9225898c14fd6a24ff1864aea098650a6d.zip |
trans-chap7: handle strings in static array. Fix #1637
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/translate/trans-chap7.adb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdl/translate/trans-chap7.adb b/src/vhdl/translate/trans-chap7.adb index db76a9178..ea1abb7e3 100644 --- a/src/vhdl/translate/trans-chap7.adb +++ b/src/vhdl/translate/trans-chap7.adb @@ -229,8 +229,8 @@ package body Trans.Chap7 is Idx := Idx + 1; else Assoc_Len := Iir_Index32 - (Eval_Discrete_Range_Length - (Get_Choice_Range (Assoc))); + (Eval_Discrete_Type_Length + (Get_Index_Type (Get_Type (Expr), 0))); for I in 0 .. Assoc_Len - 1 loop El := Eval_Indexed_Name_By_Offset (Expr, I); New_Array_Aggr_El |