class.c (maybe_warn_about_overly_private_class): Don't stop searching when we find a nonprivate method.

* class.c (maybe_warn_about_overly_private_class): Don't stop
        searching when we find a nonprivate method.

From-SVN: r61248
This commit is contained in:
Jason Merrill 2003-01-13 04:15:29 -05:00
parent f576dfc407
commit e1dfc61b5b
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// g++ should not complain about A having private [cd]tors.
class A
{
A();
~A();
public:
int dummy(); // needed to get bogus warning
static A* get_A ();
};
A* A::get_A()
{
static A a;
return &a;
}