]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
[Ada] Fix Warn_On_Late_Primitives messages not being properly tagged
authorGhjuvan Lacambre <lacambre@adacore.com>
Tue, 26 Apr 2022 07:25:52 +0000 (09:25 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 May 2022 08:29:03 +0000 (08:29 +0000)
This caused tools ingesting GNAT's output to mislabel these messages.

gcc/ada/

* sem_disp.adb (Warn_On_Late_Primitive_After_Private_Extension):
Fix insertion character.

gcc/ada/sem_disp.adb

index 0372ff87c33713b1fac5e1b43d2e165250bd58f8..3e75a47a309fa54be4d7c64f947982da5a8ae82c 100644 (file)
@@ -1207,7 +1207,7 @@ package body Sem_Disp is
                   Error_Msg_Name_2 := Chars (E);
                   Error_Msg_Sloc := Sloc (E);
                   Error_Msg_N
-                    ("?j?primitive of type % defined after private extension "
+                    ("?.j?primitive of type % defined after private extension "
                      & "% #?", Prim);
                   Error_Msg_Name_1 := Chars (Prim);
                   Error_Msg_Name_2 := Chars (E);