aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-decls.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-01-16 18:31:00 +0100
committerTristan Gingold <tgingold@free.fr>2020-01-16 18:31:00 +0100
commitee8fdad2bd5d1c18958a89f2f16ebce22f4b858b (patch)
treef0c4a3b49e7743e89029a802b952105a076ef6cd /src/synth/synth-decls.adb
parent3f1b94705e7275aebb9ab64b36b69c32cc3372ed (diff)
downloadghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.tar.gz
ghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.tar.bz2
ghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.zip
synth: handle deferred constants. Fix #1096
Diffstat (limited to 'src/synth/synth-decls.adb')
-rw-r--r--src/synth/synth-decls.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/synth-decls.adb b/src/synth/synth-decls.adb
index 2e6426ed5..1f252bd1f 100644
--- a/src/synth/synth-decls.adb
+++ b/src/synth/synth-decls.adb
@@ -447,12 +447,12 @@ package body Synth.Decls is
Cst : Value_Acc;
Obj_Type : Type_Acc;
begin
+ Synth_Declaration_Type (Syn_Inst, Decl);
if Deferred_Decl = Null_Node
or else Get_Deferred_Declaration_Flag (Decl)
then
-- Create the object (except for full declaration of a
-- deferred constant).
- Synth_Declaration_Type (Syn_Inst, Decl);
Create_Object (Syn_Inst, Decl, null);
end if;
-- Initialize the value (except for a deferred declaration).