c-common.c contains void c_parse_error (const char *msgid, enum cpp_ttype token, tree value)
which purports to format msgid, however, it contains things like, error ("%s at end of input", string); thus any magic %< in MSGID do not get munged. Resulting in, error: expected %<,%> or %<...%> before '>' token There needs to be a nesting mechanism to pass a format string as a % escape. -- Summary: bad diagnostic formatting Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: nathan at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18059