diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-27 18:00:18 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-27 18:00:18 +0200 |
commit | a0db26a3e68b5ec12df37f99529a4c9ff6ddfdaf (patch) | |
tree | 9365f7671797f764b7dc7fdce157f5c3bab222cb /src/vhdl/vhdl-sem_specs.adb | |
parent | c1093f4ef3120db4a7f5c2840c4b477c1a70b25c (diff) | |
download | ghdl-a0db26a3e68b5ec12df37f99529a4c9ff6ddfdaf.tar.gz ghdl-a0db26a3e68b5ec12df37f99529a4c9ff6ddfdaf.tar.bz2 ghdl-a0db26a3e68b5ec12df37f99529a4c9ff6ddfdaf.zip |
vhdl: minimal support of interface package in entities. For #1262
Diffstat (limited to 'src/vhdl/vhdl-sem_specs.adb')
-rw-r--r-- | src/vhdl/vhdl-sem_specs.adb | 5 |
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 |