https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114112

            Bug ID: 114112
           Summary: Error message is translatable but inserts untranslated
                    substring
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: goeran at uddeborg dot se
  Target Milestone: ---

At
https://gcc.gnu.org/git?p=gcc.git;a=blob;f=gcc/c-family/c-omp.cc;h=5117022e330c95592d7731eec161ab1b5c6925d9;hb=HEAD#l1810
the function check_loop_binding_expr emits an error message where it inserts a
"context". This "context" comes from the call and is sent as a string not
available for translation. Even if those inserted strings were marked for
translation, it is in general a bad idea to compose a message from smaller
strings in that way if they are to be correctly translated.

(See
https://www.gnu.org/software/gettext/manual/html_node/Preparing-Strings.html if
one wants a further discussion around this.)

Reply via email to