[Bug c++/20145] gcc 4.0 new warning: class has virtual functions but non-virtual destructor is not suppressed with -isystem

2005-02-23 Thread micis at gmx dot de

--- Additional Comments From micis at gmx dot de  2005-02-23 11:16 ---
Created an attachment (id=8261)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8261action=view)
preprocessed source

Command line for gcc:
/usr/local/gcc40d/bin/g++40d -O2 -g -march=opteron
 -Wall -DALTIVEC -DUSEACE -c
 -o ../../../../LinuxExec/arrilib/ArriutilTest.o
 ../../../Portabel/arrilib/compile/ArriutilTest.cpp
 -I../../../Portabel/arrilib
 -isystem/home/cie019/ace542-gcc40/ACE_wrappers
 -DHAVE_ACE_NULL_MUTEX_H -isystem/usr/local/cppunit-gcc40/include
 -I../../../../include/arrilib

Output from gcc:
/usr/local/cppunit-gcc40/include/cppunit/extensions/TestFixtureFactory.h:
 In instantiation of 'CppUnit::ConcretTestFixtureFactoryArriutilTest':
../../../Portabel/arrilib/compile/ArriutilTest.h:32:   instantiated from here
/usr/local/cppunit-gcc40/include/cppunit/extensions/TestFixtureFactory.h:30:
warning: 'class CppUnit::ConcretTestFixtureFactoryArriutilTest' has virtual
functions but non-virtual destructor

This gcc was snapshot 20050213, but 20050220 makes no difference.

Michael Cieslinski

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20145


[Bug c++/20145] gcc 4.0 new warning: class has virtual functions but non-virtual destructor is not suppressed with -isystem

2005-02-22 Thread pinskia 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/pr20145cat include/t.h
class t
{
  virtual void f();
};
tin:~/src/gnu/gcctest/pr20145cat t.cc
#include t.h

class t1
{
  virtual void f();
};

void f(void)
{
  t h;
  t1 h1;
}

tin:~/src/gnu/gcctest/pr20145gcc 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


[Bug c++/20145] gcc 4.0 new warning: class has virtual functions but non-virtual destructor is not suppressed with -isystem

2005-02-22 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-22 
17:25 ---
Oh, one more thing:
tin:~/src/gnu/gcctest/pr20145gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /home/peshtigo/pinskia/src/gnu/gcc/src/configure 
--target=i686-pc-linux-gnu --
host=i686-pc-linux-gnu --enable-__cxa_atexit 
--enable-languages=c++,objc,java,f95 --prefix=/
home/gates/pinskia/linux --enable-threads=posix --enable-shared
Thread model: posix
gcc version 4.0.0 20050222 (experimental)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20145


[Bug c++/20145] gcc 4.0 new warning: class has virtual functions but non-virtual destructor is not suppressed with -isystem

2005-02-22 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-22 
17:26 ---
Can you include the preprocessed source (the preprocessed source will have the 
thing if a header is a 
system header or not)?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20145