aboutsummaryrefslogtreecommitdiffstats
path: root/translate/grt
diff options
context:
space:
mode:
authorgingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2008-06-02 04:38:41 +0000
committergingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2008-06-02 04:38:41 +0000
commit55b1d510131724ec767a7a1eef0665c6bf86bedc (patch)
treeaf76830d247d54211fd4355c77530ba3aeaf8aba /translate/grt
parent1a936bad663149eeb814bbef68a08d297314fb50 (diff)
downloadghdl-55b1d510131724ec767a7a1eef0665c6bf86bedc.tar.gz
ghdl-55b1d510131724ec767a7a1eef0665c6bf86bedc.tar.bz2
ghdl-55b1d510131724ec767a7a1eef0665c6bf86bedc.zip
Fix 'delayed(0) at time 0
Diffstat (limited to 'translate/grt')
-rw-r--r--translate/grt/grt-signals.adb11
1 files changed, 8 insertions, 3 deletions
diff --git a/translate/grt/grt-signals.adb b/translate/grt/grt-signals.adb
index a0da21130..77a453ba3 100644
--- a/translate/grt/grt-signals.adb
+++ b/translate/grt/grt-signals.adb
@@ -2709,10 +2709,15 @@ package body Grt.Signals is
if Last.Time > Trans.Time then
Internal_Error ("delayed time");
elsif Last.Time = Trans.Time then
- if Prev = Last then
- Internal_Error ("delayed");
+ if Prev /= Last then
+ Free (Last);
+ else
+ -- No transaction.
+ if Last.Time /= 0 then
+ -- This can happen only at time = 0.
+ Internal_Error ("delayed");
+ end if;
end if;
- Free (Last);
else
Prev := Last;
end if;