diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-01-16 18:31:00 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-01-16 18:31:00 +0100 |
commit | ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b (patch) | |
tree | f0c4a3b49e7743e89029a802b952105a076ef6cd /src/synth | |
parent | 3f1b94705e7275aebb9ab64b36b69c32cc3372ed (diff) | |
download | ghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.tar.gz ghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.tar.bz2 ghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.zip |
synth: handle deferred constants. Fix #1096
Diffstat (limited to 'src/synth')
-rw-r--r-- | src/synth/synth-decls.adb | 2 |
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). |