aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/sem_expr.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb
index 5ae8653c3..56ea69f66 100644
--- a/src/vhdl/sem_expr.adb
+++ b/src/vhdl/sem_expr.adb
@@ -4487,7 +4487,7 @@ package body Sem_Expr is
Expr_Type := Get_Type (Expr);
pragma Assert (Expr_Type /= Null_Iir);
Result_Type := Compatible_Types_Intersect (Atype, Expr_Type);
- if Is_Overload_List (Atype) then
+ if Atype /= Null_Iir and then Is_Overload_List (Atype) then
Free_Overload_List (Atype);
end if;
if Result_Type /= Null_Iir then