diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-10-10 15:50:54 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-10-10 15:50:54 +0200 |
commit | f62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff (patch) | |
tree | a68a3cb4a17c4b2c89a0c3f1cf425988d1ff1f94 /src/vhdl | |
parent | b27832d75291c3288f59d648cfa83b74152adc38 (diff) | |
download | ghdl-f62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff.tar.gz ghdl-f62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff.tar.bz2 ghdl-f62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff.zip |
vhdl-sem_scopes: avoid a crash on invalid selected name. Fix #1490
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-sem_scopes.adb | 4 |
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); |