https://gcc.gnu.org/g:2fa031afe4ea78f490f06e487c48089d7376827c

commit r15-7979-g2fa031afe4ea78f490f06e487c48089d7376827c
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Mar 12 07:46:25 2025 +0100

    preprocessor: Fix up diagnostic typo in convert_oct [PR119202]
    
    In r15-4286 I've introduced a typo, part of the change was
    -       cpp_error (pfile, CPP_DL_ERROR, "'\\o' not followed by '{'");
    +       cpp_error (pfile, CPP_DL_ERROR, "%<\\o%> not followed by %<}%>");
    which turned { into }.  This patch fixes it back.
    
    2025-03-12  Jakub Jelinek  <ja...@redhat.com>
    
            PR preprocessor/119202
            * charset.cc (convert_oct): Fix up typo in diagnostics about \o
            not followed by {.

Diff:
---
 libcpp/charset.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcpp/charset.cc b/libcpp/charset.cc
index 98a58a054196..e3accf8e9a58 100644
--- a/libcpp/charset.cc
+++ b/libcpp/charset.cc
@@ -2244,7 +2244,7 @@ convert_oct (cpp_reader *pfile, const uchar *from, const 
uchar *limit,
       from++;
       extend_char_range (&char_range, loc_reader);
       if (from == limit || *from != '{')
-       cpp_error (pfile, CPP_DL_ERROR, "%<\\o%> not followed by %<}%>");
+       cpp_error (pfile, CPP_DL_ERROR, "%<\\o%> not followed by %<{%>");
       else
        {
          from++;

Reply via email to