from calls.c: static void maybe_complain_about_tail_call (tree call_expr, const char *reason) { ... error_at (EXPR_LOCATION (call_expr), "cannot tail-call: %s", reason); } The "reason" argument must be marked for translation using N_("..."), but is not. For example: maybe_complain_about_tail_call (exp, "a callee-copied argument is" " stored in the current " " function's frame"); This means that the string "a callee-copied ..." is always given in English, even if the rest of the diagnostic is given in German or some other language. I don't know how to reproduce this particular diagnostic, but there should be a test for it. When running this test in a non-English locale, the diagnostic with mixed language will show up.
Confirmed that calls.c still contains the code in question.
I am working on this but the tester was breaking for me.
Created attachment 42372 [details] Proposed Fix Send to the GCC-Patches List
(In reply to nik from comment #3) > Created attachment 42372 [details] > Proposed Fix Send to the GCC-Patches List Link to the mailing list archives showing where/when this was sent to gcc-patches?
On 2018-01-17 02:15 AM, egallager at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80188 > > --- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> --- > (In reply to nik from comment #3) >> Created attachment 42372 [details] >> Proposed Fix Send to the GCC-Patches List > > Link to the mailing list archives showing where/when this was sent to > gcc-patches? > https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00420.html Is a link to the email if you want one. Sorry for the late follow up, Nick
(In reply to nik from comment #5) > On 2018-01-17 02:15 AM, egallager at gcc dot gnu.org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80188 > > > > --- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> --- > > (In reply to nik from comment #3) > >> Created attachment 42372 [details] > >> Proposed Fix Send to the GCC-Patches List > > > > Link to the mailing list archives showing where/when this was sent to > > gcc-patches? > > > https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00420.html > > Is a link to the email if you want one. > > Sorry for the late follow up, > > Nick Thanks, adding the "patch" keyword
This has been fixed in gcc 15.