[Ada] Remove inconsistent colons in messages for Ada 83 violations
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 30 Nov 2020 11:09:12 +0000 (12:09 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 16 Dec 2020 13:01:03 +0000 (08:01 -0500)
gcc/ada/

* par-ch3.adb (P_Modular_Type_Definition): Remove colon from
error message.
* sem_ch11.adb (Check_Duplication): Likewise.
* sem_ch3.adb (Derived_Type_Declaration): Likewise.

gcc/ada/par-ch3.adb
gcc/ada/sem_ch11.adb
gcc/ada/sem_ch3.adb

index a2ff668a98bd5d1bab29a8fe56e30079e27bf9c2..b7460361d9dd6d68d67002666e83d7fcd4dd978a 100644 (file)
@@ -2430,7 +2430,7 @@ package body Ch3 is
 
    begin
       if Ada_Version = Ada_83 then
-         Error_Msg_SC ("(Ada 83): modular types not allowed");
+         Error_Msg_SC ("(Ada 83) modular types not allowed");
       end if;
 
       Typedef_Node := New_Node (N_Modular_Type_Definition, Token_Ptr);
index 940c93b946c5e42c31059ee1eb23d7945db11ec7..48c9855ff66d01acd477ef7823906721db412a84 100644 (file)
@@ -127,7 +127,7 @@ package body Sem_Ch11 is
                        and then Comes_From_Source (Id)
                      then
                         Error_Msg_N
-                          ("(Ada 83): duplicate exception choice&", Id);
+                          ("(Ada 83) duplicate exception choice&", Id);
                      end if;
                   end if;
                end if;
index 00834cea113da62f4d04a5b11a86f0006b67530f..9b4d2cc5e874dc051969351ebd53b9fbf9ed8fc1 100644 (file)
@@ -16943,7 +16943,7 @@ package body Sem_Ch3 is
       then
          if Ada_Version = Ada_83 and then Comes_From_Source (Indic) then
             Error_Msg_N
-              ("(Ada 83): premature use of type for derivation", Indic);
+              ("(Ada 83) premature use of type for derivation", Indic);
          end if;
       end if;