https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104025
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #5) > Created attachment 52213 [details] > gcc12-pr104025.patch > > Untested fix. I think the old input_location is the right one. I think the bug is that cp_lexer_rollback_tokens isn't properly updating input_location.