From d21b3b72a90e18d60da958f1cf89eb912a17928b Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 18 Apr 2020 12:03:34 +0200 Subject: synth-expr: rework handling of overflow_literal. For #1240 --- src/synth/synth-expr.adb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') 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; -- cgit v1.2.3