Bug#356316: g++-4.0: -Wnon-virtual-dtor and -Wall produce false warnings

2006-03-11 Thread Ben Hutchings
tags 356316 +patch thanks This turned out to be pretty trivial to fix, though it then took something like 5 hours to rebuild gcc and test it! --- gcc/cp/class.c~ 2006-03-11 13:28:45.0 + +++ gcc/cp/class.c 2006-03-11 13:30:19.0 + @@ -5073,9 +5073,7 @@

Bug#356316: g++-4.0: -Wnon-virtual-dtor and -Wall produce false warnings

2006-03-10 Thread Ben Hutchings
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