aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-08-03 05:46:48 +0200
committerTristan Gingold <tgingold@free.fr>2017-08-03 05:46:48 +0200
commit06da7bad24f9ea25ed2f7098aa1ef9cb139bfda9 (patch)
treebb6422332908532b85006a87188237085ff9f954 /src
parent06906cef13381eb8a021d0822b778df219b1f7b1 (diff)
downloadghdl-06da7bad24f9ea25ed2f7098aa1ef9cb139bfda9.tar.gz
ghdl-06da7bad24f9ea25ed2f7098aa1ef9cb139bfda9.tar.bz2
ghdl-06da7bad24f9ea25ed2f7098aa1ef9cb139bfda9.zip
sem_names: fix a crash with overload on a slice.
Fix #395
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/sem_names.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb
index 07262a64f..fa8987d1a 100644
--- a/src/vhdl/sem_names.adb
+++ b/src/vhdl/sem_names.adb
@@ -162,6 +162,7 @@ package body Sem_Names is
when Iir_Kind_Enumeration_Literal
| Iir_Kind_Function_Call
| Iir_Kind_Indexed_Name
+ | Iir_Kind_Slice_Name
| Iir_Kind_Selected_Element =>
Add_Element (Res_List, Get_Type (Decl));
when others =>