diff mbox series

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

Message ID 20171007151529.16500-1-xerofoify@gmail.com
State New
Headers show
Series C++/PR80188: Add correct marco call to error_at call in maybe_complain_about_tail_call | expand

Commit Message

Nicholas Krause Oct. 7, 2017, 3:15 p.m. UTC
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 <xerofoify@gmail.com>
---
 gcc/calls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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))
     return;
 
-  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