https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107936
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2022-11-30 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #0) > Shouldn't the diagnostic pragma prevent the warning even in the LTO case? Yes but I don't think it is streamed out. See PR 80922 (and a few others in the see also). Confirmed.