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 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


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