https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106529
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-08-05 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Definitely improvements are possible. For header suggestions we could devise a way to tell whether a #include <foo> was already seen (not so easy - separate preprocessing, but line markers could eventually tell), for an incompatible declaration we probably should avoid giving this kind of diagnostic.