]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sem_case.adb (Expand_Others_Choice): Improve warning.
authorEd Schonberg <schonberg@adacore.com>
Thu, 16 Jun 2005 08:45:45 +0000 (10:45 +0200)
committerArnaud 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

index a113ac91e1960622524e347124a0dbe82d2c1d20..90d64820398d342e5d872fc185fcc69527f97cd1 100644 (file)
@@ -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;