aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_inst.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-03-23 07:25:15 +0100
committerTristan Gingold <tgingold@free.fr>2023-03-23 07:25:15 +0100
commitb9bd50be737ff13967edf442717673fd9100941f (patch)
treef874c2b76751c7408591f5c8fae4e8d0cfad69f7 /src/vhdl/vhdl-sem_inst.adb
parent863df0ba75e7bd883b53a47e600955c249015462 (diff)
downloadghdl-b9bd50be737ff13967edf442717673fd9100941f.tar.gz
ghdl-b9bd50be737ff13967edf442717673fd9100941f.tar.bz2
ghdl-b9bd50be737ff13967edf442717673fd9100941f.zip
vhdl: make instance_package_body forward_ref, adjust
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 =>