aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-18 12:03:34 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-18 12:03:34 +0200
commitd21b3b72a90e18d60da958f1cf89eb912a17928b (patch)
tree5b24e2f6d15cd15618fd88b1e9e48536b7e71a9b /src
parent628c01a31db7f92f4fd7476f7adf3e9a136bc5de (diff)
downloadghdl-d21b3b72a90e18d60da958f1cf89eb912a17928b.tar.gz
ghdl-d21b3b72a90e18d60da958f1cf89eb912a17928b.tar.bz2
ghdl-d21b3b72a90e18d60da958f1cf89eb912a17928b.zip
synth-expr: rework handling of overflow_literal. For #1240
Diffstat (limited to 'src')
-rw-r--r--src/synth/synth-expr.adb10
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;