https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80895
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This patch is incorrect: /* The gmsgid may be a format string with %< and %>. */ - warned = pedwarn (exploc, opt, gmsgid); + warned = pedwarn (exploc, opt, "%s", gmsgid); See that comment of why.