From 06d1356736fb888dbf8d5e899e5be39030079c37 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 25 Mar 2017 09:49:05 +0100 Subject: Avoid a crash in case of invalid expression. --- src/vhdl/sem_stmts.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vhdl') diff --git a/src/vhdl/sem_stmts.adb b/src/vhdl/sem_stmts.adb index a2c864849..2db4df804 100644 --- a/src/vhdl/sem_stmts.adb +++ b/src/vhdl/sem_stmts.adb @@ -605,7 +605,8 @@ package body Sem_Stmts is "null transactions can be assigned only to guarded signals"); end if; else - if not Eval_Is_In_Bound (Expr, Targ_Type) + if Is_Valid (Get_Type (Expr)) + and then not Eval_Is_In_Bound (Expr, Targ_Type) and then Get_Kind (Expr) /= Iir_Kind_Overflow_Literal then Warning_Msg_Sem -- cgit v1.2.3