https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #18 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #13) > Comment 1 and comment 2 are fixed by PR 84222. > > Comment 3 now only gives three warnings (for the three uses of D in the > non-member function) not five warnings. The warnings within the class are > gone, but no improvement for the non-member function. > > Similarly, comment 5 has two fewer warnings (five not seven). comment 5 seems to have been fixed in GCC 11 to get only two warnings. The three warnings for comment 3 are suboptimal, but seem reasonable given that there are in fact three uses of the deprecated declaration. Likewise the two warnings for comment 0.