https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499
--- Comment #25 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 60283 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60283&action=edit Preliminary patch Here's a mostly-complete patch. It lacks test cases and and ChangeLog entries, but should work.