https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90539
--- Comment #34 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 46420 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46420&action=edit Patch which includes a check for being contiguous This patch looks like it could do the job. I'll have to work a bit more on test cases and ChangeLog before I can submit this, but at least it survives regression testing.