Commit 4875fbba by Ed Schonberg Committed by Arnaud Charlet

sem_case.adb (Expand_Others_Choice): Improve warning.

2005-06-14  Ed Schonberg  <schonberg@adacore.com>

	* sem_case.adb (Expand_Others_Choice): Improve warning.

From-SVN: r101058
parent bc49df98
......@@ -524,7 +524,8 @@ package body Sem_Case is
and then Comes_From_Source (Others_Choice)
and then Is_Empty_List (Choice_List)
then
Error_Msg_N ("?others choice is empty", Others_Choice);
Error_Msg_N ("?OTHERS choice is redundant", Others_Choice);
Error_Msg_N ("\previous choices cover all values", Others_Choice);
end if;
end Expand_Others_Choice;
......
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