This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20145] gcc 4.0 new warning: class has virtual functions but non-virtual destructor is not suppressed with -isystem
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Feb 2005 17:24:47 -0000
- Subject: [Bug c++/20145] gcc 4.0 new warning: class has virtual functions but non-virtual destructor is not suppressed with -isystem
- References: <20050222155906.20145.micis@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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