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

            Bug ID: 93748
           Summary: too much quotation in diagnostic (%qs instead of %s)
           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 regcprop.c:
> internal_error ("%qs: [%u] bad %<next_regno%> for empty chain (%u)",
                  __func__, i, vd->e[i].next_regno);

The __func__ is used as the prefix to the message. Usually such prefixes are
formatted as %s instead of %qs.

There are 4 matches for "%qs: in the GCC source tree and 100+ matches for "%s.
Luckily these 4 matches are all in the same file, which makes them trivial to
fix.

Reply via email to