[Bug c/93748] New: too much quotation in diagnostic (%qs instead of %s)
roland.illig at gmx dot de
gcc-bugzilla@gcc.gnu.org
Fri Feb 14 23:01:00 GMT 2020
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.
More information about the Gcc-bugs
mailing list