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:
parent
f576dfc407
commit
e1dfc61b5b
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue