aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/sem_assocs.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vhdl/sem_assocs.adb b/src/vhdl/sem_assocs.adb
index 96db4c18b..483aafd58 100644
--- a/src/vhdl/sem_assocs.adb
+++ b/src/vhdl/sem_assocs.adb
@@ -2247,10 +2247,12 @@ package body Sem_Assocs is
end;
end if;
if Get_Kind (Inter) not in Iir_Kinds_Interface_Declaration
+ or else Interface_Chain = Null_Iir
or else Get_Parent (Inter) /= Get_Parent (Interface_Chain)
then
if Finish then
- Error_Msg_Sem (+Assoc, "formal is not an interface name");
+ Error_Msg_Sem
+ (+Assoc, "formal %i is not an interface name", +Inter);
end if;
Match := Not_Compatible;
exit;