with pub-static methods should not warn on only private ctors

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Wed Mar 31 23:54:00 GMT 1999


> 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



More information about the Gcc-bugs mailing list