aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vhdl/vhdl-sem_types.adb3
1 files changed, 3 insertions, 0 deletions
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;