aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_expr.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-06-08 22:10:22 +0200
committerTristan Gingold <tgingold@free.fr>2022-06-08 22:10:22 +0200
commit6011fbc69a5285ce73237bed9cca5d900ac40237 (patch)
tree622663590c093b0bec94264d3bde66b89df8b596 /src/synth/synth-vhdl_expr.adb
parentd9304b2876aca4e86f7ee92dbd37943e0e5b1acf (diff)
downloadghdl-6011fbc69a5285ce73237bed9cca5d900ac40237.tar.gz
ghdl-6011fbc69a5285ce73237bed9cca5d900ac40237.tar.bz2
ghdl-6011fbc69a5285ce73237bed9cca5d900ac40237.zip
synth-vhdl_expr.adb: use base type for indexed names. Fix #2083
Diffstat (limited to 'src/synth/synth-vhdl_expr.adb')
-rw-r--r--src/synth/synth-vhdl_expr.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/synth/synth-vhdl_expr.adb b/src/synth/synth-vhdl_expr.adb
index 5b5034986..6b7672ae2 100644
--- a/src/synth/synth-vhdl_expr.adb
+++ b/src/synth/synth-vhdl_expr.adb
@@ -2229,9 +2229,10 @@ package body Synth.Vhdl_Expr is
case Get_Kind (Expr) is
when Iir_Kind_High_Array_Attribute
| Iir_Kind_Low_Array_Attribute
+ | Iir_Kind_Indexed_Name
| Iir_Kind_Integer_Literal =>
-- The type of this attribute is the type of the index, which is
- -- not synthesized as atype (only as an index).
+ -- not synthesized as a type (only as an index).
-- For integer_literal, the type is not really needed, and it
-- may be created by static evaluation of an array attribute.
Etype := Get_Base_Type (Etype);