aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-10-10 15:50:54 +0200
committerTristan Gingold <tgingold@free.fr>2020-10-10 15:50:54 +0200
commitf62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff (patch)
treea68a3cb4a17c4b2c89a0c3f1cf425988d1ff1f94
parentb27832d75291c3288f59d648cfa83b74152adc38 (diff)
downloadghdl-f62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff.tar.gz
ghdl-f62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff.tar.bz2
ghdl-f62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff.zip
vhdl-sem_scopes: avoid a crash on invalid selected name. Fix #1490
-rw-r--r--src/vhdl/vhdl-sem_scopes.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_scopes.adb b/src/vhdl/vhdl-sem_scopes.adb
index e4288341b..6e761edda 100644
--- a/src/vhdl/vhdl-sem_scopes.adb
+++ b/src/vhdl/vhdl-sem_scopes.adb
@@ -1481,6 +1481,10 @@ package body Vhdl.Sem_Scopes is
is
Nname : Iir;
begin
+ if Name = Null_Iir then
+ return;
+ end if;
+
case Get_Kind (Name) is
when Iir_Kind_Overload_List =>
Add_Declarations_List (Get_Overload_List (Name), True);