from Debian bug : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502283
$ cat test.c class XXX { virtual void foo() = 0; }; int main () { } $ g++-4.1 -Wall test.c test.c:1: warning: class XXX has virtual functions but non-virtual destructor starting at g++-4.2, there is no warning anymore -- Summary: [4.2/4.3/4.4 Regression] -Wall option no longer warns about `class XXX' has virtual functions but non-virtual destructor Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: arthur dot loiret at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38560