https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105849

            Bug ID: 105849
           Summary: A couple of new clang warnings
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried a build of gcc trunk with clang. There are two
new warnings which might be worth fixing:

gcc/alloc-pool.h:522:5: warning: destructor called on non-final
'value_range_equiv' that has virtual functions but non-virtual destructor
[-Wdelete-non-abstract-non-virtual-dtor]
gcc/ggc.h:166:3: warning: destructor called on non-final 'int_range<1>' that
has virtual functions but non-virtual destructor
[-Wdelete-non-abstract-non-virtual-dtor]

Standard practice is to have virtual destructor in the presence of virtual
functions.

Reply via email to