From 6f76368d49f445299691cb9013e03216188fc34c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 8 Nov 2022 18:22:58 +0100 Subject: vhdl-sem_expr: fix a crash after error. Fix #2239 --- src/vhdl/vhdl-sem_expr.adb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vhdl') diff --git a/src/vhdl/vhdl-sem_expr.adb b/src/vhdl/vhdl-sem_expr.adb index 5b5010319..1b52000b5 100644 --- a/src/vhdl/vhdl-sem_expr.adb +++ b/src/vhdl/vhdl-sem_expr.adb @@ -1675,6 +1675,8 @@ package body Vhdl.Sem_Expr is end if; if Get_Kind (Formal) = Iir_Kind_Interface_Signal_Declaration and then Get_Mode (Formal) in Iir_Out_Modes + and then + Get_Kind (Param) = Iir_Kind_Association_Element_By_Expression then Prefix := Name_To_Object (Get_Actual (Param)); if Prefix /= Null_Iir then -- cgit v1.2.3