[Bug other/79872] document placeholder %K in gcc-internal-format
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 30 14:25:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79872
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
I'd argue that %K is an aberration, since it doesn't control the printing of
its argument, but rather the location of the diagnostic. Instead, code such as:
error ("%Klane %wd out of range %wd - %wd", exp, lane, low, high - 1);
should be written as:
error_at (abstract_origin_of (exp),
"lane %wd out of range %wd - %wd", lane, low, high - 1);
More information about the Gcc-bugs
mailing list