re PR c++/55813 (Poorly named/documented option Wctor-dtor-privacy)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 28 Feb 2013 10:00:54 +0000 (10:00 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 28 Feb 2013 10:00:54 +0000 (10:00 +0000)
2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55813
* doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.

From-SVN: r196334

gcc/ChangeLog
gcc/doc/invoke.texi

index 407fd674bfcbdd7060165189ac050d6252c29ee9..7bda77ed87d4968c624d3c5cc5a796641af4a6af 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/55813
+       * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
+
 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
 
        PR target/56445
index c209cc600612c3ce12549c799054499626d13599..fe72f627dd568a130607b963fcf5565947ab2676 100644 (file)
@@ -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