aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-11 20:55:41 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-12 06:44:25 +0100
commitf3eba1ac1ef38f7708154e594ede3f72db78105b (patch)
tree7164e9edc9996a4eca8bf53dba7de372f4df5b77 /src/vhdl/vhdl-sem.adb
parent783074260833160bfc3ef8f9203147e752e6269e (diff)
downloadghdl-f3eba1ac1ef38f7708154e594ede3f72db78105b.tar.gz
ghdl-f3eba1ac1ef38f7708154e594ede3f72db78105b.tar.bz2
ghdl-f3eba1ac1ef38f7708154e594ede3f72db78105b.zip
vhdl: clear associated_type in Sem_Generic_Association_Chain
So that it is cleared after use.
Diffstat (limited to 'src/vhdl/vhdl-sem.adb')
-rw-r--r--src/vhdl/vhdl-sem.adb6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem.adb b/src/vhdl/vhdl-sem.adb
index 528b642a1..174f1456e 100644
--- a/src/vhdl/vhdl-sem.adb
+++ b/src/vhdl/vhdl-sem.adb
@@ -445,6 +445,12 @@ package body Vhdl.Sem is
Sem_Association_Chain
(Inter_Chain, Assoc_Chain, True, Miss, Assoc_Parent, Match);
+
+ -- Clear associated type of interface type.
+ -- Should be part of Sem_Association_Chain, but needed only for
+ -- generics.
+ Clear_Interface_Associated (Inter_Chain);
+
Set_Generic_Map_Aspect_Chain (Assoc_Parent, Assoc_Chain);
if Match = Not_Compatible then
return False;