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

            Bug ID: 79834
           Summary: c/c-parser.c: make code more i18n-friendly
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

The following code pattern occurs several times:

    c_parser_error (parser, "%<#pragma acc update%> may only be "
                    "used in compound statements");

Each of these occurrences has to be translated individually by a translator for
each of the supported human languages. This creates unnecessary work. It would
be less work (and fewer chances of introducing typos) to have only one
template:

    c_parser_error (parser, "%<#pragma %s%> may only be "
                    "used in compound statements",
                    "acc update");

The code in c/c-parser.c and cp/parser.c should therefore use the second
pattern consistently.

Reply via email to