From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30571 invoked by alias); 10 Nov 2002 20:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 30556 invoked by uid 71); 10 Nov 2002 20:06:00 -0000 Date: Sun, 10 Nov 2002 12:06:00 -0000 Message-ID: <20021110200600.30555.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/689: this warning is not helpful: `class xxxx' only defines a private destructor and has no friend Reply-To: Wolfgang Bangerth X-SW-Source: 2002-11/txt/msg00482.txt.bz2 List-Id: The following reply was made to PR c++/689; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/689: this warning is not helpful: `class xxxx' only defines a private destructor and has no friend Date: Sun, 10 Nov 2002 14:06:45 -0600 (CST) A simple testcase to show the problem is this: --------------------- class X { public: X(); private: ~X(); }; --------------------- I get tmp/g> /home/bangerth/bin/gcc-3.3x-pre/bin/c++ -W -c x.cc x.cc:2: warning: `class X' only defines a private destructor and has no friends ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth