https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95873
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The warning is invalid in this case anyways so even though there is a duplicated warning it only happens with valid code which should not warn at all.