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

            Bug ID: 79453
           Summary: Translator unfriendly string in avr_pgm_check_var_decl
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: translation
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fmarchal at perso dot be
  Target Milestone: ---

In gcc/config/avr/avr.c, at line, 9831 (inside avr_pgm_check_var_decl()), one
can find this error message:

    error ("pointer targeting address space %qs must be const"
           " in %s %q+D",
             avr_addrspace[as].name, reason, node);

The "reason" variable contains an untranslated text such as "variable",
"function parameter", "return type of function", and so on. Building a string
out of fragments doesn't play well at all with translations.

I'm afraid every reason should have its own error message.

Reply via email to