This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]C++/PR80188: Add correct marco call to error_at call in maybe_complain_about_tail_call

This fixes maybe_complain_about_tail_call to in correctly use the marco, _ around reason in the
call to error_at. This fixes the issue with only the first part of the function being
correctly translated to English when translation is done. Passes standard testing on 
x86_64_linux_gnu without any new regressions. Ok for trunk?

Signed-off-by: Nicholas Krause <>
 gcc/calls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/calls.c b/gcc/calls.c
index 72cf9e016c8..38b4dc7617b 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -1515,7 +1515,7 @@ maybe_complain_about_tail_call (tree call_expr, const char *reason)
   if (!CALL_EXPR_MUST_TAIL_CALL (call_expr))
-  error_at (EXPR_LOCATION (call_expr), "cannot tail-call: %s", reason);
+  error_at (EXPR_LOCATION (call_expr), "cannot tail-call: %s", _(reason));
 /* Fill in ARGS_SIZE and ARGS array based on the parameters found in

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]