https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113889
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 57453 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57453&action=edit Proposed fix Here is a proposed patch and associated testcases.