https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 55683 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55683&action=edit Proposed fix Here is a proposed fix together with three regression tests.