This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: remove C++ warning about all private c/dtors and no friends?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]