diff options
-rw-r--r-- | src/synth/synth-expr.adb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index 420dad946..98019b6d7 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -2036,14 +2036,8 @@ package body Synth.Expr is return Create_Value_Access (Acc, Expr_Type); end; when Iir_Kind_Overflow_Literal => - declare - N : Net; - begin - Error_Msg_Synth - (+Expr, "error detected during analysis injected"); - N := Build_Const_X (Get_Build (Syn_Inst), Expr_Type.W); - return Create_Value_Net (N, Expr_Type); - end; + Error_Msg_Synth (+Expr, "out of bound expression"); + return No_Valtyp; when others => Error_Kind ("synth_expression_with_type", Expr); end case; |