aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-03-12 07:46:25 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-03-12 07:46:25 +0100
commit2fa031afe4ea78f490f06e487c48089d7376827c (patch)
tree5322275c2c718de1028feab5538fa7e854b1851a /libcpp
parent7efe3aa9b5d4d7aba3736d1393b007705522dc45 (diff)
downloadgcc-2fa031afe4ea78f490f06e487c48089d7376827c.zip
gcc-2fa031afe4ea78f490f06e487c48089d7376827c.tar.gz
gcc-2fa031afe4ea78f490f06e487c48089d7376827c.tar.bz2
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 <jakub@redhat.com> PR preprocessor/119202 * charset.cc (convert_oct): Fix up typo in diagnostics about \o not followed by {.
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/charset.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/charset.cc b/libcpp/charset.cc
index 98a58a0..e3accf8 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++;