https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108835
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 54487 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54487&action=edit Proposed fix Here is the work in progress patch (code could do with a cleanup).