diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-06-26 21:11:34 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-06-26 21:11:34 +0200 |
commit | 2ab1ec16f1c01639cdbe14393e712759885da614 (patch) | |
tree | 5734dbc83e42f2a52d709823b92915247c17b5f8 /src | |
parent | ec063ac4da3715a272a7734fffc7a7ec98abd4ba (diff) | |
download | ghdl-2ab1ec16f1c01639cdbe14393e712759885da614.tar.gz ghdl-2ab1ec16f1c01639cdbe14393e712759885da614.tar.bz2 ghdl-2ab1ec16f1c01639cdbe14393e712759885da614.zip |
sem_parenthesis_name: handle unit declaration as prefix.
Fix #374
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/sem_names.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb index 7751e8f0b..21b88a610 100644 --- a/src/vhdl/sem_names.adb +++ b/src/vhdl/sem_names.adb @@ -2667,7 +2667,8 @@ package body Sem_Names is when Iir_Kinds_Process_Statement | Iir_Kind_Component_Declaration - | Iir_Kind_Type_Conversion => + | Iir_Kind_Type_Conversion + | Iir_Kind_Unit_Declaration => Error_Msg_Sem (+Name, "%n cannot be indexed or sliced", +Prefix); Res := Null_Iir; |