Commit bc5e261c by Ed Schonberg Committed by Arnaud Charlet

sem_ch6.adb: Improve better error message.

2014-11-20  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch6.adb: Improve better error message.

From-SVN: r217847
parent 35e7063a
2014-11-20 Ed Schonberg <schonberg@adacore.com>
* sem_ch6.adb: Improve better error message.
2014-11-20 Thomas Quinot <quinot@adacore.com> 2014-11-20 Thomas Quinot <quinot@adacore.com>
* freeze.adb, sem_ch13.adb: Minor editing. * freeze.adb, sem_ch13.adb: Minor editing.
......
...@@ -334,7 +334,8 @@ package body Sem_Ch6 is ...@@ -334,7 +334,8 @@ package body Sem_Ch6 is
and then Nkind (Original_Node (Unit_Declaration_Node (Prev))) and then Nkind (Original_Node (Unit_Declaration_Node (Prev)))
= N_Expression_Function = N_Expression_Function
then then
Error_Msg_N ("Duplicate expression function", N); Error_Msg_Sloc := Sloc (Prev);
Error_Msg_N ("& conflicts with declaration#", Def_Id);
return; return;
end if; end if;
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment