https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66215
--- Comment #7 from Dominik Vogt <vogt at linux dot vnet.ibm.com> --- Created attachment 35595 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35595&action=edit Experimental fix Can you please check whether this patch works for you? The patch also contains improved test cases that should hopefully detect anything like this happening again.