[Ada] Missing space in error message for pattern matching
authorYannick Moy <moy@adacore.com>
Mon, 10 May 2021 12:36:25 +0000 (14:36 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 6 Jul 2021 14:46:55 +0000 (14:46 +0000)
gcc/ada/

* sem_case.adb: Fix error message.

gcc/ada/sem_case.adb

index 36db9a7..9ff2564 100644 (file)
@@ -2908,7 +2908,7 @@ package body Sem_Case is
             begin
                if Has_Predicates (Subtyp) then
                   Error_Msg_N
-                     ("subtype of case selector (or subcomponent thereof)" &
+                     ("subtype of case selector (or subcomponent thereof) " &
                       "has predicate", N);
                elsif Is_Discrete_Type (Subtyp) then
                   if not Is_Static_Subtype (Subtyp) then
@@ -2938,7 +2938,7 @@ package body Sem_Case is
                elsif Is_Record_Type (Subtyp) then
                   if Has_Discriminants (Subtyp) then
                      Error_Msg_N
-                        ("type of case selector (or subcomponent thereof)" &
+                        ("type of case selector (or subcomponent thereof) " &
                          "is discriminated", N);
                   else
                      declare