https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119797
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |tree-optimization Keywords| |diagnostic --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the warning is not exactly wrong just missing extra information on why it is being emitted in this case.