aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_types.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/vhdl-sem_types.adb')
-rw-r--r--src/vhdl/vhdl-sem_types.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_types.adb b/src/vhdl/vhdl-sem_types.adb
index fe1777916..3d77d8ab5 100644
--- a/src/vhdl/vhdl-sem_types.adb
+++ b/src/vhdl/vhdl-sem_types.adb
@@ -953,7 +953,9 @@ package body Vhdl.Sem_Types is
Set_Nth_Element (Index_List, I, Index_Type);
Index_Type := Get_Type (Index_Type);
- if Get_Kind (Index_Type) not in Iir_Kinds_Discrete_Type_Definition
+ if Index_Type = Null_Node then
+ null;
+ elsif Get_Kind (Index_Type) not in Iir_Kinds_Discrete_Type_Definition
then
Error_Msg_Sem
(+Index_Type,