[Bug c++/20145] gcc 4.0 new warning: class has virtual functions but non-virtual destructor is not suppressed with -isystem
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 22 23:19:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list