https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124340
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
operand_compare nor the classes that inheirtances from it has no state
associated with it so a virtual dtor is not needed.
class that inheirtances from address_reload_context has state associated with
it BUT those have no need for a dtor as those are all PODs and have nothing
else.
>2.Using pragma directives to suppress warnings
I won't do that.
Also from the manual about this option:
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/C_002b_002b-Dialect-Options.html#index-Wnon-virtual-dtor
The -Wdelete-non-virtual-dtor option (enabled by -Wall) should be preferred
because it warns about the unsafe cases without false positives.
Basically this is the false positive that Wnon-virtual-dtor would give.