https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94029
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 48055 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48055&action=edit gcc10-pr94029-2.patch Variant patch which doesn't change input_location but propagates the closing } location to finish_function.