Commit e1dfc61b by Jason Merrill

class.c (maybe_warn_about_overly_private_class): Don't stop searching when we…

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
parent f576dfc4
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment