On Fri, Oct 01, 2021 at 04:11:08PM -0400, Marek Polacek via Gcc-patches wrote:
> +  auto_diagnostic_group d;
> +  if (warning_at (location, OPT_Warray_compare,
> +               "comparison between two arrays%s",
> +               (c_dialect_cxx () && cxx_dialect >= cxx20)
> +               ? " is deprecated in C++20" : ""))

Not a review, just a comment.
The above is impossible to translate, translators would translate the
first half and the second one would be in English; but even translating
the second part too would mean one can't reword it in some other language
in different word order.

You can e.g. use
  if (warning_at (location, OPT_Warray_compare,
                  (c_dialect_cxx () && cxx_dialect >= cxx20)
                  ? G_("comparison between two arrays is deprecated in C++20")
                  : G_("comparison between two arrays")))
instead.

        Jakub

Reply via email to