https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102611
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 51595 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51595&action=edit gcc12-P2128R6-WIP.patch Untested WIP, just template handling hasn't been added yet, so it is useful only without templates so far.