https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104994
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52657 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52657&action=edit gcc12-pr104994.patch Untested fix. This anticipates that CWG. If we wouldn't, we should temporarily revert those changes for the passing through case.