This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16168] -Weffc++ item 14 improvements


------- Additional Comments From bangerth at dealii dot org  2004-06-28 19:29 -------
Here's a testcase: 
------------ 
struct A { 
    ~A (); 
}; 
 
struct B : public A {}; 
------------ 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -Weffc++ -c x.cc 
x.cc:5: warning: base class `struct A' has a non-virtual destructor 
 
I'm not really sure whether we want to avoid the error message here, 
but I guess it makes sense if there are no virtual functions. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-28 19:29:51
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]