diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-08-23 21:22:43 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-08-24 06:26:33 +0200 |
commit | 839ac8635cca825618163cadcb9a7734e43172b9 (patch) | |
tree | 97243c2b60f732db4c36468f044bdc08c7593ea1 /src | |
parent | eca2196d27d042c83b2806c90e08931bb8a1d308 (diff) | |
download | ghdl-839ac8635cca825618163cadcb9a7734e43172b9.tar.gz ghdl-839ac8635cca825618163cadcb9a7734e43172b9.tar.bz2 ghdl-839ac8635cca825618163cadcb9a7734e43172b9.zip |
vhdl-sem_specs: avoid ownership issue on default map aspect.
Diffstat (limited to 'src')
-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 b81058280..29c13b7a9 100644 --- a/src/vhdl/vhdl-sem_specs.adb +++ b/src/vhdl/vhdl-sem_specs.adb @@ -1980,7 +1980,10 @@ package body Vhdl.Sem_Specs is Set_Formal (Assoc, Name); if Get_Kind (Ent_El) in Iir_Kinds_Interface_Object_Declaration then - Set_Type (Name, Get_Type (Ent_El)); + -- Do not set the type of the formal, as it can be a forward + -- reference. This is a little bit unusual to not have type. + -- Set_Type (Name, Get_Type (Ent_El)); + null; end if; if Kind = Map_Port |