aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_specs.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/vhdl-sem_specs.adb')
-rw-r--r--src/vhdl/vhdl-sem_specs.adb5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_specs.adb b/src/vhdl/vhdl-sem_specs.adb
index e0a44848d..eca951a2b 100644
--- a/src/vhdl/vhdl-sem_specs.adb
+++ b/src/vhdl/vhdl-sem_specs.adb
@@ -1898,9 +1898,12 @@ package body Vhdl.Sem_Specs is
-- current design unit does not depend on the entity.
Name := Build_Simple_Name (Ent_El, Parent);
Set_Is_Forward_Ref (Name, True);
- Set_Type (Name, Get_Type (Ent_El));
Set_Formal (Assoc, Name);
+ if Get_Kind (Ent_El) in Iir_Kinds_Interface_Object_Declaration then
+ Set_Type (Name, Get_Type (Ent_El));
+ end if;
+
if Kind = Map_Port
and then not Error
and then Comp_El /= Null_Iir