Package: g++-4.0 Version: 4.0.2-10 Severity: normal Tags: upstream It's generally a design error to have a public non-virtual destructor in a class that has virtual functions, so I accept that g++ should warn about that. However, a protected non-virtual destructor is normally fine, because it prevents the deletion of a derived class instances through a pointer to the base class (except in a member or friend of the base class). It should be possible to enable warnings about the first case, as -Wnon-virtual-dtor and -Wall do, without being warned about the second.
This was reported upstream long ago as #7302. It actually affects versions 3.1-4.1 inclusive, but I thought it would be best to report it on the package for the current version. Ben. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]