aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-decls.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-16 21:47:00 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-16 21:47:00 +0200
commite2bcb854e0a3b26122576232db71690a5c395dfc (patch)
tree9d435f4b20b8fdc3551de248c45604e2589a19e1 /src/synth/synth-decls.adb
parentac5e38c968ebce2dced8510574bb7e3891686efe (diff)
downloadghdl-e2bcb854e0a3b26122576232db71690a5c395dfc.tar.gz
ghdl-e2bcb854e0a3b26122576232db71690a5c395dfc.tar.bz2
ghdl-e2bcb854e0a3b26122576232db71690a5c395dfc.zip
synth-decls: can initialize a static variable with a constant.
Diffstat (limited to 'src/synth/synth-decls.adb')
-rw-r--r--src/synth/synth-decls.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synth/synth-decls.adb b/src/synth/synth-decls.adb
index df5385655..153a4e077 100644
--- a/src/synth/synth-decls.adb
+++ b/src/synth/synth-decls.adb
@@ -801,6 +801,7 @@ package body Synth.Decls is
Init := Create_Value_Default (Obj_Typ);
end if;
if Get_Instance_Const (Syn_Inst) then
+ Init := Strip_Alias_Const (Init);
Init := Unshare (Init, Current_Pool);
Create_Object (Syn_Inst, Decl, Init);
else