From 776b85c64c2809735d3df2b2fbf4a970854ecce0 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 6 Sep 2020 09:28:57 +0200 Subject: [PATCH] sem_parenthesis_name: handle more error cases. --- src/vhdl/vhdl-sem_names.adb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb index 29f774f286..6369798804 100644 --- a/src/vhdl/vhdl-sem_names.adb +++ b/src/vhdl/vhdl-sem_names.adb @@ -3132,7 +3132,11 @@ package body Vhdl.Sem_Names is | Iir_Kind_Attribute_Declaration | Iir_Kinds_Library_Unit | Iir_Kind_Library_Declaration - | Iir_Kinds_Type_Attribute => + | Iir_Kinds_Type_Attribute + | Iir_Kind_Nature_Declaration + | Iir_Kind_Subnature_Declaration + | Iir_Kind_Group_Declaration + | Iir_Kind_Group_Template_Declaration => Error_Msg_Sem (+Name, "%n cannot be indexed or sliced", +Prefix); Res := Null_Iir;