https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72828
--- Comment #2 from Giuseppe Ottaviano <ott at fb dot com> --- Martin, I noticed you marked this as "[5/6/7 Regression]", but to be clear the bug is present since at least 4.9 (the oldest version I tested). It's only the attached reduction that is sensitive to compiler version. I can provide repros for 4.9 and 5.1 as well.