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

            Bug ID: 99298
           Summary: diagnostic in name-lookup.c embeds part-of-speech
           Product: gcc
           Version: 11.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: ---

gcc/cp/name-lookup.c says:
> error_at (loc, "%s namespace %qD conflicts with reachable definition",
>           inline_p ? "inline" : "non-inline", decl);
> inform (DECL_SOURCE_LOCATION (decl), "reachable %s definition here",
>         inline_p ? "non-inline" : "inline");

The word "non-inline" cannot be translated into other languages since it is
provided as a string literal. Depending on the language, the "non" might even
change the complete structure of the message.

https://gcc.gnu.org/codingconventions.html#Diagnostics says:
> All diagnostics should be full sentences without English
> fragments substituted in them, to facilitate translation.

Reply via email to