From ce97cf3bc4a5732d5aca67acd474add6bd9b167d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 16 Feb 2016 07:49:15 +0100 Subject: Fix crash of issue42. --- src/vhdl/sem_expr.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb index e41f9322a..684683d0c 100644 --- a/src/vhdl/sem_expr.adb +++ b/src/vhdl/sem_expr.adb @@ -390,7 +390,8 @@ package body Sem_Expr is | Iir_Kind_Reverse_Range_Array_Attribute | Iir_Kind_Element_Declaration | Iir_Kind_Attribute_Declaration - | Iir_Kind_Psl_Declaration => + | Iir_Kind_Psl_Declaration + | Iir_Kind_Signature => Error_Msg_Sem (Disp_Node (Expr) & " not allowed in an expression", Loc); return Null_Iir; -- cgit v1.2.3