https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94189
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 48038 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48038&action=edit gcc10-pr94189-1.patch One possible fix, optimize even if we emit a warning.