From 727f3514973a5ec8b7fc86bd8db6611585bd9217 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 4 Jan 2020 17:52:47 +0100 Subject: vhdl/translate: handle more partially constrained array subtypes. For #1038 --- src/vhdl/translate/trans-chap3.adb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vhdl/translate/trans-chap3.adb') diff --git a/src/vhdl/translate/trans-chap3.adb b/src/vhdl/translate/trans-chap3.adb index c09203252..64e658629 100644 --- a/src/vhdl/translate/trans-chap3.adb +++ b/src/vhdl/translate/trans-chap3.adb @@ -950,6 +950,9 @@ package body Trans.Chap3 is -- Declare the types. Finish_Unbounded_Type_Base (Info); else + -- The element type is not static (like an array sub-type with + -- bounds that were computed). So an array cannot be created in + -- ortho. if El_Tinfo.Type_Mode in Type_Mode_Arrays then Info.B.Base_Type := El_Tinfo.B.Base_Ptr_Type; Info.B.Base_Ptr_Type := El_Tinfo.B.Base_Ptr_Type; -- cgit v1.2.3