aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_inst.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/vhdl-sem_inst.adb')
-rw-r--r--src/vhdl/vhdl-sem_inst.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_inst.adb b/src/vhdl/vhdl-sem_inst.adb
index 66754d91d..02e63836d 100644
--- a/src/vhdl/vhdl-sem_inst.adb
+++ b/src/vhdl/vhdl-sem_inst.adb
@@ -614,7 +614,9 @@ package body Vhdl.Sem_Inst is
-- Do not instantiate the body of a package while
-- instantiating a shared package.
if not Is_Within_Shared_Instance then
- Instantiate_Iir_Field (Res, N, F);
+ Set_Instance_Package_Body
+ (Res, Instantiate_Iir (Get_Instance_Package_Body (N),
+ False));
end if;
when Field_Subtype_Definition =>