Skip to content

Commit

Permalink
sem_parenthesis_name: handle more error cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgingold committed Sep 6, 2020
1 parent 1c899f2 commit 776b85c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vhdl/vhdl-sem_names.adb
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 776b85c

Please sign in to comment.