diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-09-06 09:28:57 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-09-06 09:28:57 +0200 |
commit | 776b85c64c2809735d3df2b2fbf4a970854ecce0 (patch) | |
tree | e29e391611e759777c43486dbffe21612be03ffb | |
parent | 1c899f2eb56f3b0b99ff1d12fd6fb475d5654c2f (diff) | |
download | ghdl-776b85c64c2809735d3df2b2fbf4a970854ecce0.tar.gz ghdl-776b85c64c2809735d3df2b2fbf4a970854ecce0.tar.bz2 ghdl-776b85c64c2809735d3df2b2fbf4a970854ecce0.zip |
sem_parenthesis_name: handle more error cases.
-rw-r--r-- | src/vhdl/vhdl-sem_names.adb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb index 29f774f28..636979880 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; |