aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/vhdl-sem_inst.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_inst.adb b/src/vhdl/vhdl-sem_inst.adb
index 5394114a9..3272628d1 100644
--- a/src/vhdl/vhdl-sem_inst.adb
+++ b/src/vhdl/vhdl-sem_inst.adb
@@ -1253,8 +1253,11 @@ package body Vhdl.Sem_Inst is
case Get_Kind (Inter_El) is
when Iir_Kind_Interface_Type_Declaration =>
Inter := Get_Association_Interface (Inst_El, Inter_El);
+ -- Redirect the interface type definition.
Set_Instance (Get_Type (Get_Origin (Inter)),
Get_Actual_Type (Inst_El));
+ -- And also the interface type declaration.
+ Set_Instance (Get_Origin (Inter), Inter);
-- Implicit operators.
declare
Imp_Inter : Iir;