diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-03-25 09:49:05 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-03-25 09:49:05 +0100 |
commit | 06d1356736fb888dbf8d5e899e5be39030079c37 (patch) | |
tree | 4c006046a558bd5edb08ffbd84c3d344c5db74a8 | |
parent | acd655405d0e4420c8d17afe2c6a7f2c4bec8225 (diff) | |
download | ghdl-06d1356736fb888dbf8d5e899e5be39030079c37.tar.gz ghdl-06d1356736fb888dbf8d5e899e5be39030079c37.tar.bz2 ghdl-06d1356736fb888dbf8d5e899e5be39030079c37.zip |
Avoid a crash in case of invalid expression.
-rw-r--r-- | src/vhdl/sem_stmts.adb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |