diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-11-06 03:49:23 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-11-06 03:49:23 +0100 |
commit | 7d82da829488f4cb033ad1ad295f2d86ca9e7e7f (patch) | |
tree | 0965dc4792ca6bdbcc413f027402c62de0e91121 /src/synth/synth-decls.adb | |
parent | 51e84968803814de78a47a3b78b3599e9efb0708 (diff) | |
download | ghdl-7d82da829488f4cb033ad1ad295f2d86ca9e7e7f.tar.gz ghdl-7d82da829488f4cb033ad1ad295f2d86ca9e7e7f.tar.bz2 ghdl-7d82da829488f4cb033ad1ad295f2d86ca9e7e7f.zip |
synth: unshare default value of variables. Fix #1006
Diffstat (limited to 'src/synth/synth-decls.adb')
-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 a0a904795..f3ceb64a1 100644 --- a/src/synth/synth-decls.adb +++ b/src/synth/synth-decls.adb @@ -572,7 +572,7 @@ package body Synth.Decls is end if; if Get_Instance_Const (Syn_Inst) then pragma Assert (Init /= null); - Create_Object (Syn_Inst, Decl, Init); + Create_Object (Syn_Inst, Decl, Unshare (Init, Current_Pool)); else Create_Wire_Object (Syn_Inst, Wire_Variable, Decl); Create_Var_Wire (Syn_Inst, Decl, Init); |