------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-22 17:24 ------- I cannot reproduce this with 4.0 (20050222). tin:~/src/gnu/gcctest/pr20145>cat include/t.h class t { virtual void f(); }; tin:~/src/gnu/gcctest/pr20145>cat t.cc #include <t.h>
class t1 { virtual void f(); }; void f(void) { t h; t1 h1; } tin:~/src/gnu/gcctest/pr20145>gcc t.cc -isystem include/ -W -Wall -S t.cc:4: warning: ‘class t1’ has virtual functions but non-virtual destructor -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20145