From 263c843ed49f59cb4cc3038bafcac2b9238ebad4 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 9 Jan 2022 15:56:08 +0100 Subject: vhdl-sem_types: handle record in reparse_as_array_constraint. Fix #1934 --- src/vhdl/vhdl-sem_types.adb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/vhdl/vhdl-sem_types.adb b/src/vhdl/vhdl-sem_types.adb index 848cea916..83da696d1 100644 --- a/src/vhdl/vhdl-sem_types.adb +++ b/src/vhdl/vhdl-sem_types.adb @@ -1957,6 +1957,9 @@ package body Vhdl.Sem_Types is Set_Array_Element_Constraint (Res, Reparse_As_Array_Constraint (Def, Def_El_Type)); Set_Has_Element_Constraint_Flag (Res, True); + when Iir_Kind_Record_Type_Definition => + Set_Array_Element_Constraint + (Res, Reparse_As_Record_Constraint (Def)); when others => Error_Kind ("reparse_as_array_constraint", Def_El_Type); end case; -- cgit v1.2.3