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

Oren Ben-Kiki <gcc-o...@ben-kiki.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc-o...@ben-kiki.org

--- Comment #6 from Oren Ben-Kiki <gcc-o...@ben-kiki.org> ---
This still occurs in 4.8.2, and is an extremely annoying issue; it makes
-Weffc++ very difficult to apply to a code base.

This warning really should be restricted to cases where the base class has a
virtual function. For extra credit, we could keep the warning for cases where
the base class has no virtual functions, but the derived class adds data
members with "non trivial" destructors.

This is unrelated to the question of allowing finer grained control over the
warnings of -Weffc++; emitting this warning for cases like `struct Foo{};
struct Bar : Foo{};` just makes no sense and clearly isn't what was intended by
the effective C++ rule.

Reply via email to