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

            Bug ID: 93882
           Summary: i18n: use consistent message template in decl.c
           Product: gcc
           Version: 10.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: ---

From decl.c:

     error_at (declspecs->locations[ds_consteval],
                "%qs cannot appear in a typedef declaration", "consteval");
      return error_mark_node;
    }

  if (constinit_p && typedef_p)
    {
      error_at (declspecs->locations[ds_constinit],
                "%<constinit%> cannot appear in a typedef declaration");
      return error_mark_node;
    }

The second error_at should use %qs in the same way as the first error_at. This
creates less work for the i18n translators.

Reply via email to