From 98d13c051f8c87b69a07c34c836ed31e8ee58842 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 21 Sep 2020 07:53:23 +0200 Subject: vhdl-sem_types: fix staticness of 'open' array constraint. Fix #1469 --- src/vhdl/vhdl-sem_types.adb | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/vhdl/vhdl-sem_types.adb b/src/vhdl/vhdl-sem_types.adb index 95f48d71e..d669c170d 100644 --- a/src/vhdl/vhdl-sem_types.adb +++ b/src/vhdl/vhdl-sem_types.adb @@ -1610,6 +1610,7 @@ package body Vhdl.Sem_Types is -- constrained on indexes. Set_Index_Constraint_Flag (Def, Get_Index_Constraint_Flag (Mark_Def)); Set_Index_Subtype_List (Def, Get_Index_Subtype_List (Mark_Def)); + Index_Staticness := Get_Type_Staticness (Mark_Def); else if Get_Index_Constraint_Flag (Mark_Def) then Error_Msg_Sem (+Def, "constrained array cannot be re-constrained"); -- cgit v1.2.3