https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100695
Bug ID: 100695 Summary: Format decoder, quoting in 'dump_printf' etc. Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: dmalcolm at gcc dot gnu.org Target Milestone: --- For user-visible '-fopt-info' diagnostics ('dump_printf' etc.), I'm trying to pretty-print a TREE DECL, using the '%T' format code. As in other compiler diagnostics, I'd like the output to be quoted, so I tried using '%qT' but that prints the same as '%T' (unexpected?). Using '%<%T%>' prints the desired output -- but GCC bootstrap doesn't like that one: [...]/gcc/omp-low.c:10171:33: error: âTâ conversion used within a quoted sequence [-Werror=format=] 10171 | "variable %<%T%> ", decl); | ^ I'll work around that, but something seems inconsistent here?