This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: with pub-static methods should not warn on only private ctors
- To: yotam at tharas dot com
- Subject: Re: with pub-static methods should not warn on only private ctors
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Wed, 10 Mar 1999 00:38:11 +0100
- CC: egcs-bugs at cygnus dot com
- References: <199903091934.LAA19812@emu.tharas.com>
> It is quite common to define a class that can be created
> only via a static methods. Therefore, in the following
> I think the warning should not be issued.
Thanks for your report. This is a known bug and has been fixed in the
mainline. In your version of the compiler, you can use
-Wno-ctor-dtor-privacy after -Wall to kill the warning.
Regards,
Martin