aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_names.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/sem_names.adb')
-rw-r--r--src/vhdl/sem_names.adb10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb
index d8d7dea6e..141563292 100644
--- a/src/vhdl/sem_names.adb
+++ b/src/vhdl/sem_names.adb
@@ -1830,7 +1830,15 @@ package body Sem_Names is
if not Valid_Interpretation (Interpretation) then
-- Unknown name.
if not Soft then
- Error_Msg_Sem (+Name, "no declaration for %i", +Name);
+ Interpretation := Get_Interpretation_Raw (Id);
+ if Valid_Interpretation (Interpretation)
+ and then Is_Conflict_Declaration (Interpretation)
+ then
+ Error_Msg_Sem
+ (+Name, "no declaration for %i (due to conflicts)", +Name);
+ else
+ Error_Msg_Sem (+Name, "no declaration for %i", +Name);
+ end if;
end if;
Res := Error_Mark;
elsif not Valid_Interpretation (Get_Next_Interpretation (Interpretation))