[Ada] Improve error message on anonymous access parameter conversion
authorArnaud Charlet <charlet@adacore.com>
Thu, 16 Apr 2020 12:37:56 +0000 (08:37 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 17 Jun 2020 08:14:16 +0000 (04:14 -0400)
2020-06-17  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* sem_res.adb (Valid_Conversion): Change error message to make
it more user-friendly.

gcc/ada/sem_res.adb

index 7e6535028892763c047496ece8ea89baf17ad9b2..0a6d61f0df8a536cb2563512652efd528645188b 100644 (file)
@@ -13336,7 +13336,7 @@ package body Sem_Res is
                                        N_Procedure_Specification)
                   then
                      Conversion_Error_N
-                       ("implicit conversion of anonymous access formal "
+                       ("implicit conversion of anonymous access parameter "
                         & "not allowed", Operand);
                      return False;