* sem_ch6.adb: Improve better error message.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217847
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-11-20 Ed Schonberg <schonberg@adacore.com>
+
+ * sem_ch6.adb: Improve better error message.
+
2014-11-20 Thomas Quinot <quinot@adacore.com>
* freeze.adb, sem_ch13.adb: Minor editing.
and then Nkind (Original_Node (Unit_Declaration_Node (Prev)))
= N_Expression_Function
then
- Error_Msg_N ("Duplicate expression function", N);
+ Error_Msg_Sloc := Sloc (Prev);
+ Error_Msg_N ("& conflicts with declaration#", Def_Id);
return;
end if;
end if;