projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc49df9
)
sem_case.adb (Expand_Others_Choice): Improve warning.
author
Ed Schonberg
<schonberg@adacore.com>
Thu, 16 Jun 2005 08:45:45 +0000
(10:45 +0200)
committer
Arnaud Charlet
<charlet@gcc.gnu.org>
Thu, 16 Jun 2005 08:45:45 +0000
(10:45 +0200)
2005-06-14 Ed Schonberg <schonberg@adacore.com>
* sem_case.adb (Expand_Others_Choice): Improve warning.
From-SVN: r101058
gcc/ada/sem_case.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_case.adb
b/gcc/ada/sem_case.adb
index a113ac91e1960622524e347124a0dbe82d2c1d20..90d64820398d342e5d872fc185fcc69527f97cd1 100644
(file)
--- a/
gcc/ada/sem_case.adb
+++ b/
gcc/ada/sem_case.adb
@@
-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;