[Bug c/114364] Untranslatable string 'in intervening code'

2024-03-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114364

Jakub Jelinek  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #5 from Jakub Jelinek  ---
Fixed.

[Bug c/114364] Untranslatable string 'in intervening code'

2024-03-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114364

--- Comment #4 from GCC Commits  ---
The master branch has been updated by Jakub Jelinek :

https://gcc.gnu.org/g:8959ab63f1881a8a4b1921b946d4ea3986bf1063

commit r14-9534-g8959ab63f1881a8a4b1921b946d4ea3986bf1063
Author: Jakub Jelinek 
Date:   Tue Mar 19 09:10:26 2024 +0100

openmp: Make c_omp_check_loop_binding_exprs diagnostics translatable
[PR114364]

c_omp_check_loop_binding_exprs with check_loop_binding_expr was composing
diagnostics from a format string with %s that provided additional words
(but not
keywords).  That is a big no no for translations, both because the
translator
can't choose a different word order and because the %s part wasn't
translated
at all (would need to use _("...") to get translated), so this patch
rewrites it
such that the whole messages are in the format strings.

2024-03-19  Jakub Jelinek  

PR c/114364
* c-omp.cc (enum check_loop_binding_expr_ctx): New type.
(check_loop_binding_expr): Remove context argument, add ctx
argument with check_loop_binding_expr_ctx type at the end.  Don't
create diagnostic message from multiple pieces.
(c_omp_check_loop_binding_exprs): Adjust callers.

[Bug c/114364] Untranslatable string 'in intervening code'

2024-03-17 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114364

--- Comment #3 from Roland Illig  ---
The diff looks good to me. Untested.

[Bug c/114364] Untranslatable string 'in intervening code'

2024-03-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114364

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org
   Last reconfirmed||2024-03-16

--- Comment #2 from Jakub Jelinek  ---
Created attachment 57716
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57716=edit
gcc14-pr1164364.patch

Untested fix.

[Bug c/114364] Untranslatable string 'in intervening code'

2024-03-16 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114364

--- Comment #1 from Roland Illig  ---
Oops, I misinterpreted the code, as 'in intervening code' is indeed
translatable, but 'as loop variable' isn't, so the bug report is still valid.