aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vhdl/vhdl-sem_names.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb
index f632b614e..b02fdedd4 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -4814,7 +4814,7 @@ package body Vhdl.Sem_Names is
-- A message must have been displayed.
return Name;
when Iir_Kind_Overload_List =>
- Error_Overload (Res);
+ Error_Overload (Name);
Set_Named_Entity (Name, Create_Error_Name (Name));
return Name;
when Iir_Kinds_Concurrent_Statement