aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-evaluation.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-22 21:31:33 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-22 21:31:33 +0200
commit0509e5ae98b1018ebcfe44240c6d71cec9cc6c52 (patch)
tree8a7d9dfdc42c95711b4bb2c1e7610483daf80867 /src/vhdl/vhdl-evaluation.adb
parent72b5a66438052bf7e089b7f5ab1fee3462aa2a81 (diff)
downloadghdl-0509e5ae98b1018ebcfe44240c6d71cec9cc6c52.tar.gz
ghdl-0509e5ae98b1018ebcfe44240c6d71cec9cc6c52.tar.bz2
ghdl-0509e5ae98b1018ebcfe44240c6d71cec9cc6c52.zip
evaluation: weaken error for out of bound static value.
Diffstat (limited to 'src/vhdl/vhdl-evaluation.adb')
-rw-r--r--src/vhdl/vhdl-evaluation.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-evaluation.adb b/src/vhdl/vhdl-evaluation.adb
index e33c2bea4..06c46684c 100644
--- a/src/vhdl/vhdl-evaluation.adb
+++ b/src/vhdl/vhdl-evaluation.adb
@@ -3576,7 +3576,8 @@ package body Vhdl.Evaluation is
is
begin
if not Eval_Is_Range_In_Bound (A_Range, Sub_Type, Any_Dir) then
- Error_Msg_Sem (+A_Range, "static range violates bounds");
+ Warning_Msg_Sem (Warnid_Runtime_Error, +A_Range,
+ "static range violates bounds");
end if;
end Eval_Check_Range;