From f62a2c0b0c0c281c7c9e5cb06635b2bd48d400ff Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 10 Oct 2020 15:50:54 +0200 Subject: vhdl-sem_scopes: avoid a crash on invalid selected name. Fix #1490 --- src/vhdl/vhdl-sem_scopes.adb | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3