[Bug c++/102168] -Wnon-virtual-dtor shouldn't fire for protected dtor in a class with a friend declaration

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 6 09:58:31 GMT 2022


--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The -Wnon-virtual-dtor warning is just dumb, that's why I added Clang's
-Wdelete-non-virtual-dtor which should be used instead.

More information about the Gcc-bugs mailing list