aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/trans-chap4.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-11-24 07:47:26 +0100
committerTristan Gingold <tgingold@free.fr>2021-11-24 07:47:26 +0100
commit76f6765bf5228e59f4ffb75878c81849003b7815 (patch)
tree0a25c12ec75f89a77cd07b6494f2e6fd3ea6dc87 /src/vhdl/translate/trans-chap4.adb
parentba783ea097c47e1b5ec9fdfcd5f6dcc202ab00d4 (diff)
downloadghdl-76f6765bf5228e59f4ffb75878c81849003b7815.tar.gz
ghdl-76f6765bf5228e59f4ffb75878c81849003b7815.tar.bz2
ghdl-76f6765bf5228e59f4ffb75878c81849003b7815.zip
vhdl/translate: handle target aggregate with unbounded names. Fix #1914
Diffstat (limited to 'src/vhdl/translate/trans-chap4.adb')
-rw-r--r--src/vhdl/translate/trans-chap4.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap4.adb b/src/vhdl/translate/trans-chap4.adb
index e9b8f2614..d9feeb16d 100644
--- a/src/vhdl/translate/trans-chap4.adb
+++ b/src/vhdl/translate/trans-chap4.adb
@@ -607,6 +607,7 @@ package body Trans.Chap4 is
Aggr_Base_Type : constant Iir := Get_Base_Type (Aggr_Type);
begin
Name_Node := Stabilize (Name);
+ pragma Assert (Get_Object_Kind (Name_Node) = Mode_Value);
if Get_Constraint_State (Aggr_Type) /= Fully_Constrained then
-- Allocate bounds
Chap3.Allocate_Unbounded_Composite_Bounds
@@ -614,7 +615,7 @@ package body Trans.Chap4 is
-- Translate bounds
Chap7.Translate_Aggregate_Bounds
(Stabilize (Chap3.Get_Composite_Bounds (Name_Node)),
- Value);
+ Value, Mode_Value);
-- Allocate base
Chap3.Allocate_Unbounded_Composite_Base
(Alloc_Kind, Name_Node, Aggr_Base_Type);