This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: remove C++ warning about all private c/dtors and no friends?
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 06 Jan 2003 11:46:37 -0800
- Subject: Re: remove C++ warning about all private c/dtors and no friends?
--On Monday, January 06, 2003 02:09:03 PM -0500 Jason Merrill
<jason@redhat.com> wrote:
This warning gives a false positive for a class like
class A
{
A();
~A();
public:
A* make_A ();
}
I assume "make_A" should be static? Otherwise, you still have no way
of making one of these.
and furthermore, seems kind of useless. Surely that's the sort of
situation that will be caught quickly during normal development. Would
anyone object to tearing out this warning?
I would not object.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com