aboutsummaryrefslogtreecommitdiffstats
path: root/src/simul
diff options
context:
space:
mode:
Diffstat (limited to 'src/simul')
-rw-r--r--src/simul/simul-vhdl_simul.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simul/simul-vhdl_simul.adb b/src/simul/simul-vhdl_simul.adb
index a9393b277..856f18a0b 100644
--- a/src/simul/simul-vhdl_simul.adb
+++ b/src/simul/simul-vhdl_simul.adb
@@ -2341,6 +2341,9 @@ package body Simul.Vhdl_Simul is
Create_Value_Memory (Val));
Res := Synth.Vhdl_Expr.Synth_Subtype_Conversion
(Inst, Res, Res_Typ, False, Func);
+ if Res = No_Valtyp then
+ Grt.Errors.Fatal_Error;
+ end if;
return Synth.Vhdl_Expr.Get_Value_Memtyp (Res);
end;
when others =>