From a0db26a3e68b5ec12df37f99529a4c9ff6ddfdaf Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 27 Apr 2020 18:00:18 +0200 Subject: vhdl: minimal support of interface package in entities. For #1262 --- src/vhdl/vhdl-sem_specs.adb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vhdl/vhdl-sem_specs.adb') 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 -- cgit v1.2.3