https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116106 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Hmm https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102975#c2 suggests gcc is correct.