https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113385
--- Comment #3 from Sam James <sjames at gcc dot gnu.org> --- Created attachment 57078 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57078&action=edit reduced.ii Attached something a bit smaller but it's not great (not very elegant and too many warnings).