]> gcc.gnu.org Git - gcc.git/commitdiff
[Ada] Fix typos in calls to Error_Msg_NE
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 23 Dec 2020 18:01:17 +0000 (19:01 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 3 May 2021 09:28:24 +0000 (05:28 -0400)
gcc/ada/

* sem_aggr.adb (Resolve_Record_Aggregate): Fix casing in error
message.
* sem_ch3.adb (Add_Internal_Interface_Entities): Fix unbalanced
parens.
* sem_elim.adb (Eliminate_Error_Msg): Add insertion character.

gcc/ada/sem_aggr.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_elim.adb

index 5fa1051a5fa0c865c21be59ce7462434dbdded6b..5963d03992bc749c91913f2b650187b89ef4cd41 100644 (file)
@@ -5031,7 +5031,7 @@ package body Sem_Aggr is
 
          if Present (Get_Value (Component, Component_Associations (N))) then
             Error_Msg_NE
-              ("more than one value supplied for Component &", N, Component);
+              ("more than one value supplied for component &", N, Component);
          end if;
 
          Next (Positional_Expr);
index deec92c81792b1d4e356df369eb10701616a31bb..6a86efd902241eeb79ca45fc57e42e7613f2595e 100644 (file)
@@ -1777,7 +1777,7 @@ package body Sem_Ch3 is
                      elsif not Comes_From_Source (Prim) then
                         Error_Msg_NE
                           ("&inherits non-conforming preconditions and must "
-                           & "be overridden (RM 6.1.1 (10-16)",
+                           & "be overridden (RM 6.1.1 (10-16))",
                            Parent (Tagged_Type), Prim);
                      end if;
                   end if;
index d693a8de453836c4e90d28049e4492657e58c589..62e9fc05e328621133ca0952d846d370d37b2a63 100644 (file)
@@ -783,7 +783,7 @@ package body Sem_Elim is
         and then Is_Concurrent_Record_Type (Etype (First_Entity (E)))
       then
          Error_Msg_NE
-           ("cannot reference eliminated protected subprogram", N, E);
+           ("cannot reference eliminated protected subprogram&", N, E);
 
       --  Otherwise should not fall through, entry should be in table
 
This page took 0.105071 seconds and 5 git commands to generate.