https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117376
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think there is a missing check to see if the warning was emitted before the inform. I have seen the "note: destination object" diagnostic without a warning before too.