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: Jason Merrill <jason at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 06 Jan 2003 16:24:23 -0500
- Subject: Re: remove C++ warning about all private c/dtors and no friends?
- References: <233260000.1041882397@warlock.codesourcery.com>
On Mon, 06 Jan 2003 11:46:37 -0800, Mark Mitchell <mark@codesourcery.com> wrote:
> --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?
Er, yes.
Jason