[committed] preprocessor: Fix up diagnostic typo in convert_oct [PR119202]

Message ID Z9EukLR97panQ3gN@tucnak
State New
Headers
Series [committed] preprocessor: Fix up diagnostic typo in convert_oct [PR119202] |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap fail Patch failed to apply
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap fail Patch failed to apply

Commit Message

Jakub Jelinek March 12, 2025, 6:49 a.m. UTC
  Hi!

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.

Bootstrapped/regtested on x86_64-linux and i686-linux, committed
to trunk as obvious.

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 {.


	Jakub
  

Patch

--- libcpp/charset.cc.jj	2025-01-02 11:47:49.457953685 +0100
+++ libcpp/charset.cc	2025-03-10 22:09:56.180654302 +0100
@@ -2244,7 +2244,7 @@  convert_oct (cpp_reader *pfile, const uc
       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++;