diff options
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/translate/trans-chap8.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap8.adb b/src/vhdl/translate/trans-chap8.adb index 4d608c839..f1366a540 100644 --- a/src/vhdl/translate/trans-chap8.adb +++ b/src/vhdl/translate/trans-chap8.adb @@ -2896,7 +2896,12 @@ package body Trans.Chap8 is -- * compute the size of the object Chap3.Gen_Call_Type_Builder (Chap3.Get_Composite_Bounds (Params (Last_Individual)), - Get_Type (Base_Formal), Formal_Object_Kind); + Get_Type (Base_Formal), Mode_Value); + if Formal_Object_Kind = Mode_Signal then + Chap3.Gen_Call_Type_Builder + (Chap3.Get_Composite_Bounds (Params (Last_Individual)), + Get_Type (Base_Formal), Mode_Signal); + end if; -- * allocate base Chap3.Allocate_Unbounded_Composite_Base |