[Bug c++/7302] -Wnon-virtual-dtor should't complain of protected dtor

2007-02-21 Thread ben at decadent dot org dot uk
--- Comment #15 from ben at decadent dot org dot uk 2007-02-22 01:10 --- Pawel: Yes, any friend class or function can call a protected or private destructor wrongly. So can members of the class - in fact, even pure virtual members can, since they may still have definitions

[Bug c++/7302] -Wnon-virtual-dtor should't complain of protected dtor

2007-02-13 Thread ben at decadent dot org dot uk
--- Comment #12 from ben at decadent dot org dot uk 2007-02-13 16:16 --- Already posted as http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00885.html, with no response. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7302 --- You are receiving this mail because: --- You

[Bug c++/7302] -Wnon-virtual-dtor should't complain of protected dtor

2006-12-07 Thread ben at decadent dot org dot uk
--- Comment #10 from ben at decadent dot org dot uk 2006-12-08 00:40 --- Lawrence: Every class has a destructor. You're talking about classes that have trivial destructors. Whether a non-virtual destructor is trivial or not has no bearing on the fact that if an instance of a derived