aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-02-28 10:00:54 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2013-02-28 10:00:54 +0000
commit502c067d54d373d7a8769b481bbae6279fb701f1 (patch)
tree322399c82ee0d65836450738a092cfd8e0663257 /gcc
parent1a80db971def22067b3ccbb27b995cd5b86488c0 (diff)
downloadgcc-502c067d54d373d7a8769b481bbae6279fb701f1.zip
gcc-502c067d54d373d7a8769b481bbae6279fb701f1.tar.gz
gcc-502c067d54d373d7a8769b481bbae6279fb701f1.tar.bz2
re PR c++/55813 (Poorly named/documented option Wctor-dtor-privacy)
2013-02-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/55813 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete. From-SVN: r196334
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/invoke.texi4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 407fd67..7bda77e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index c209cc6..fe72f62 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