diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 407fd674bfc..7bda77ed87d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-02-28 Paolo Carlini + + PR c++/55813 + * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete. + 2013-02-28 Georg-Johann Lay PR target/56445 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index c209cc60061..fe72f627dd5 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -2455,7 +2455,9 @@ union U @{ @opindex Wno-ctor-dtor-privacy Warn when a class seems unusable because all the constructors or destructors in that class are private, and it has neither friends nor -public static member functions. +public static member functions. Also warn if there are no non-private +methods, and there's at least one private member function that isn't +a constructor or destructor. @item -Wdelete-non-virtual-dtor @r{(C++ and Objective-C++ only)} @opindex Wdelete-non-virtual-dtor