https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52952
--- Comment #37 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to do...@seketeli.org from comment #9) > "manu at gcc dot gnu.org" <gcc-bugzi...@gcc.gnu.org> a écrit: > > > So either one keeps track of all source locations of all "interesting" > > characters within strings, which sounds infeasible. Or one needs to > > re-preprocess the format string, creating new locations on-the-fly. Dodji, > > is > > this possible? > > With the current infrastructure, I fear we cannot re-process the format > string *after* the initial pre-processing phase is done, to create new > locations that we'd a in the line maps. I'm thinking whether we cannot simply add a new RENAME map on the fly just before emitting an error. We could even replace the source_location of the string with this new map starting location.