public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-903] [Ada] Fix missing space in error message
@ 2022-06-01  8:46 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-06-01  8:46 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d12465419650114202b4f3e72838c2878db1b6b3

commit r13-903-gd12465419650114202b4f3e72838c2878db1b6b3
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Tue May 3 14:13:13 2022 +0200

    [Ada] Fix missing space in error message
    
    On illegal code like:
    
       type T is new Positive in range 1..5;
    
    the compiler was emitting message:
    
      error: extra "in"ignored
                      ^^
    
    which lacked a space character.
    
    A tiny diagnostic improvement; spotted while mistakenly typing an
    illegal test.
    
    gcc/ada/
    
            * par-util.adb (Ignore): Add missing space to message string.

Diff:
---
 gcc/ada/par-util.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/par-util.adb b/gcc/ada/par-util.adb
index 2eabc58699d..3f1247a5121 100644
--- a/gcc/ada/par-util.adb
+++ b/gcc/ada/par-util.adb
@@ -462,7 +462,7 @@ package body Util is
             declare
                Tname : constant String := Token_Type'Image (Token);
             begin
-               Error_Msg_SC ("|extra " & Tname (5 .. Tname'Last) & "ignored");
+               Error_Msg_SC ("|extra " & Tname (5 .. Tname'Last) & " ignored");
             end;
          end if;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-01  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01  8:46 [gcc r13-903] [Ada] Fix missing space in error message Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).