re PR c++/689 ([diagnostic] this warning is not helpful: `class xxxx' only defines...
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sun, 11 May 2003 12:47:42 +0000 (12:47 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 11 May 2003 12:47:42 +0000 (12:47 +0000)
commitf333504d46da2f112b66a3957a7c8d0fd0c422f7
treea6924f208de2f2c4ca7c84c3605e16b1d484b223
parent9f01ded6a4ccb23faa18ce19091eb5ea0408b8d9
re PR c++/689 ([diagnostic] this warning is not helpful: `class xxxx' only defines a private destructor and has no friend)

PR C++/689
PR C++/9257
* c-opts.c (c_common_decode_option): Don't set
warn_ctor_dtor_privacy wen -Wall.
* c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.

From-SVN: r66684
gcc/ChangeLog
gcc/c-common.c
gcc/c-opts.c
gcc/testsuite/g++.dg/warn/ctor-dtor-privacy-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/ctor-dtor-privacy-2.C [new file with mode: 0644]