aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-decls.adb
diff options
context:
space:
mode:
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