summaryrefslogtreecommitdiff
path: root/sem_names.adb
diff options
context:
space:
mode:
authorTristan Gingold2013-12-29 14:42:30 +0100
committerTristan Gingold2013-12-29 14:42:30 +0100
commitc3aaf322e299e5c4f9611446c5184eb9d4f6938c (patch)
treed16181c6331f67ad26790de833508d26f0afc7b5 /sem_names.adb
parent2c70ace5754bc18a151e7b4d4bde7018dd64c2af (diff)
downloadghdl-c3aaf322e299e5c4f9611446c5184eb9d4f6938c.tar.gz
ghdl-c3aaf322e299e5c4f9611446c5184eb9d4f6938c.tar.bz2
ghdl-c3aaf322e299e5c4f9611446c5184eb9d4f6938c.zip
Fix two crashes (bug18810 and bug15933).
Diffstat (limited to 'sem_names.adb')
-rw-r--r--sem_names.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sem_names.adb b/sem_names.adb
index c6ccf68..51232a0 100644
--- a/sem_names.adb
+++ b/sem_names.adb
@@ -1642,7 +1642,8 @@ package body Sem_Names is
when Iir_Kind_Type_Declaration
| Iir_Kind_Subtype_Declaration
| Iir_Kind_Concurrent_Procedure_Call_Statement
- | Iir_Kind_Component_Instantiation_Statement =>
+ | Iir_Kind_Component_Instantiation_Statement
+ | Iir_Kind_Slice_Name =>
Error_Msg_Sem
(Disp_Node (Prefix) & " cannot be selected by name", Prefix_Loc);